MCPcopy
hub / github.com/dask/dask / argwhere

Function argwhere

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

Source from the content-addressed store, hash-verified

2140
2141@derived_from(np)
2142def argwhere(a):
2143 a = asarray(a)
2144
2145 nz = isnonzero(a).flatten()
2146
2147 ind = indices(a.shape, dtype=np.intp, chunks=a.chunks)
2148 if ind.ndim > 1:
2149 ind = stack([ind[i].ravel() for i in range(len(ind))], axis=1)
2150 ind = compress(nz, ind, axis=0)
2151
2152 return ind
2153
2154
2155@derived_from(np)

Callers 2

flatnonzeroFunction · 0.85
nonzeroFunction · 0.85

Calls 7

asarrayFunction · 0.90
indicesFunction · 0.90
stackFunction · 0.90
isnonzeroFunction · 0.85
compressFunction · 0.85
flattenMethod · 0.80
ravelMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…