heat.array_api._set_functions
Module Contents
- class UniqueInverseResult[source]
Bases:
NamedTupleInternal object for return type of
unique_inverse.- values :heat.array_api._array_object.Array
- inverse_indices :heat.array_api._array_object.Array
- unique_inverse(x: heat.array_api._array_object.Array, /) UniqueInverseResult[source]
Returns the unique elements of an input array
xand the indices from the set of unique elements that reconstructx.- Parameters:
x (Array) – Input array. If
xhas more than one dimension, the function flattensxand returns the unique elements of the flattened array.
- unique_values(x: heat.array_api._array_object.Array, /) heat.array_api._array_object.Array[source]
Returns the unique elements of an input array
x.- Parameters:
x (Array) – Input array. If
xhas more than one dimension, the function flattensxand returns the unique elements of the flattened array.