Return the maximum of an array or maximum along an axis. `amax` is an alias of `~numpy.max`. See Also -------- max : alias of this function ndarray.max : equivalent method
(a, axis=None, out=None, keepdims=np._NoValue, initial=np._NoValue,
where=np._NoValue)
| 3164 | |
| 3165 | @array_function_dispatch(_max_dispatcher) |
| 3166 | def amax(a, axis=None, out=None, keepdims=np._NoValue, initial=np._NoValue, |
| 3167 | where=np._NoValue): |
| 3168 | """ |
| 3169 | Return the maximum of an array or maximum along an axis. |
| 3170 | |
| 3171 | `amax` is an alias of `~numpy.max`. |
| 3172 | |
| 3173 | See Also |
| 3174 | -------- |
| 3175 | max : alias of this function |
| 3176 | ndarray.max : equivalent method |
| 3177 | """ |
| 3178 | return _wrapreduction(a, np.maximum, 'max', axis, None, out, |
| 3179 | keepdims=keepdims, initial=initial, where=where) |
| 3180 | |
| 3181 | |
| 3182 | def _min_dispatcher(a, axis=None, out=None, keepdims=None, initial=None, |
no test coverage detected
searching dependent graphs…