MCPcopy Create free account
hub / github.com/dask/dask / _numel_masked

Function _numel_masked

dask/array/backends.py:263–265  ·  view source on GitHub ↗

Numel implementation for masked arrays.

(x, **kwargs)

Source from the content-addressed store, hash-verified

261
262@numel_lookup.register(np.ma.masked_array)
263def _numel_masked(x, **kwargs):
264 """Numel implementation for masked arrays."""
265 return chunk.sum(np.ones_like(x), **kwargs)
266
267
268@numel_lookup.register((object, np.ndarray))

Callers

nothing calls this directly

Calls 1

sumMethod · 0.45

Tested by

no test coverage detected