- cupy.bincount(x, weights=None, minlength=None)[source]#
Count number of occurrences of each value in array of non-negative ints.
x (cupy.ndarray) – Input array.
weights (cupy.ndarray) – Weights array which has the same shape as
minlength (int) – A minimum number of bins for the output array.
The result of binning the input array. The length of output is equal to
max(cupy.max(x) + 1, minlength).
- Return type
This function may synchronize the device.