cupynumeric.unique_all#
- cupynumeric.unique_all(
- x: ndarray,
- /,
Find unique values and their indices, inverse indices, and counts.
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 – A result with four fields:
valuescontains the unique values;indicescontains their first positions in the flattened input;inverse_indiceshas the shape of x and reconstructs the input fromvalues; andcountscontains occurrence counts.- Return type:
namedtuple
See also
- Availability:
Multiple GPUs, Multiple CPUs