MCPcopy
hub / github.com/dask/dask / count_nonzero

Function count_nonzero

dask/array/routines.py:2176–2177  ·  view source on GitHub ↗
(a, axis=None)

Source from the content-addressed store, hash-verified

2174
2175@derived_from(np)
2176def count_nonzero(a, axis=None):
2177 return isnonzero(asarray(a)).astype(np.intp).sum(axis=axis)
2178
2179
2180@derived_from(np)

Callers

nothing calls this directly

Calls 4

asarrayFunction · 0.90
isnonzeroFunction · 0.85
sumMethod · 0.45
astypeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…