Version of np.min which ignores size 0 arrays
(x, axis=None, keepdims=None)
| 118 | |
| 119 | |
| 120 | def chunk_min(x, axis=None, keepdims=None): |
| 121 | """Version of np.min which ignores size 0 arrays""" |
| 122 | if x.size == 0: |
| 123 | return array_safe([], x, ndmin=x.ndim, dtype=x.dtype) |
| 124 | else: |
| 125 | return np.min(x, axis=axis, keepdims=keepdims) |
| 126 | |
| 127 | |
| 128 | @implements(np.max, np.amax) |
nothing calls this directly
no test coverage detected
searching dependent graphs…