MCPcopy
hub / github.com/dask/dask / chunk_max

Function chunk_max

dask/array/reductions.py:144–149  ·  view source on GitHub ↗

Version of np.max which ignores size 0 arrays

(x, axis=None, keepdims=None)

Source from the content-addressed store, hash-verified

142
143
144def chunk_max(x, axis=None, keepdims=None):
145 """Version of np.max which ignores size 0 arrays"""
146 if x.size == 0:
147 return array_safe([], x, ndmin=x.ndim, dtype=x.dtype)
148 else:
149 return np.max(x, axis=axis, keepdims=keepdims)
150
151
152@derived_from(np)

Callers

nothing calls this directly

Calls 2

array_safeFunction · 0.90
maxMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…