cupynumeric.unique_counts#
- cupynumeric.unique_counts(
- x: ndarray,
- /,
Find unique values and their occurrence 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 whose
valuesfield contains the unique values and whosecountsfield contains the corresponding occurrence counts.- Return type:
namedtuple
See also
- Availability:
Multiple GPUs, Multiple CPUs