cunumeric.count_nonzero#
- cunumeric.count_nonzero(a: ndarray, axis: int | tuple[int, ...] | None = None) int | ndarray #
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