cupynumeric.unique_values#

cupynumeric.unique_values(
x: ndarray,
/,
) ndarray#

Find the unique values in an array.

Each NaN is treated as a distinct value. Results are currently sorted, with NaNs placed after non-NaN values.

Parameters:

x (array_like) – Input array. The values are flattened before grouping.

Returns:

out – The unique values from x.

Return type:

ndarray

See also

unique

Availability:

Multiple GPUs, Multiple CPUs