Skip to content

Add clarification to documentation of unique() #564

@Inzlinger

Description

@Inzlinger

Feature functionality
Clarify that the order in res is either unstable or how it relates to split/axis.
Not sure whether this is a bug or works as intended; the order of res is different depending on the split.

Output array. The unique elements. Elements are distributed the same way as the input tensor.

Additional context
Example:

import heat as ht
a = ht.array([1,2,3])
a
tensor([1, 2, 3])
ht.unique(a)
tensor([3, 2, 1])
b = ht.array([1,2,3], split=0)
b
tensor([1, 2, 3])
ht.unique(b)
tensor([1, 2, 3])

Metadata

Metadata

Assignees

No one assigned

    Labels

    Question: Further information is requesteddocumentationAnything related to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions