dpnp.bincount
- dpnp.bincount(x1, weights=None, minlength=0)[source]
Count number of occurrences of each value in array of non-negative ints.
For full documentation refer to
numpy.bincount
.See also
dpnp.unique
Find the unique elements of an array.
Examples
>>> import dpnp as np >>> res = np.bincount(np.arange(5)) >>> print(res) [1, 1, 1, 1, 1]