cunumeric.count_nonzero#
- cunumeric.count_nonzero(a, axis=None)#
Counts the number of non-zero values in the array
a
.- Parameters
- Returns
count – Number of non-zero values in the array along a given axis. Otherwise, the total number of non-zero values in the array is returned.
- Return type
See also
- Availability
Multiple GPUs, Multiple CPUs