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

Function chunk_min

dask/array/reductions.py:117–122  ·  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

115
116
117def chunk_min(x, axis=None, keepdims=None):
118 """Version of np.min which ignores size 0 arrays"""
119 if x.size == 0:
120 return array_safe([], x, ndmin=x.ndim, dtype=x.dtype)
121 else:
122 return np.min(x, axis=axis, keepdims=keepdims)
123
124
125@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