MCPcopy
hub / github.com/dask/dask / nonzero

Function nonzero

dask/array/routines.py:2186–2191  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

2184
2185@derived_from(np)
2186def nonzero(a):
2187 ind = argwhere(a)
2188 if ind.ndim > 1:
2189 return tuple(ind[:, i] for i in range(ind.shape[1]))
2190 else:
2191 return (ind,)
2192
2193
2194def _unravel_index_kernel(indices, func_kwargs):

Callers 4

nonzeroMethod · 0.90
whereFunction · 0.70
tril_indicesFunction · 0.70
triu_indicesFunction · 0.70

Calls 1

argwhereFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…