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

Function chunk_min

dask/array/reductions.py:118–123  ·  view source on GitHub ↗

Version of np.min which ignores size 0 arrays

(x, axis=None, keepdims=None)

Source from the content-addressed store, hash-verified

116
117
118def chunk_min(x, axis=None, keepdims=None):
119 """Version of np.min which ignores size 0 arrays"""
120 if x.size == 0:
121 return array_safe([], x, ndmin=x.ndim, dtype=x.dtype)
122 else:
123 return np.min(x, axis=axis, keepdims=keepdims)
124
125
126@implements(np.max, np.amax)

Callers

nothing calls this directly

Calls 2

array_safeFunction · 0.90
minMethod · 0.45

Tested by

no test coverage detected