MCPcopy Create free account
hub / github.com/numpy/numpy / amax

Function amax

numpy/core/fromnumeric.py:2815–2828  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

2813
2814@array_function_dispatch(_max_dispatcher)
2815def amax(a, axis=None, out=None, keepdims=np._NoValue, initial=np._NoValue,
2816 where=np._NoValue):
2817 """
2818 Return the maximum of an array or maximum along an axis.
2819
2820 `amax` is an alias of `~numpy.max`.
2821
2822 See Also
2823 --------
2824 max : alias of this function
2825 ndarray.max : equivalent method
2826 """
2827 return _wrapreduction(a, np.maximum, 'max', axis, None, out,
2828 keepdims=keepdims, initial=initial, where=where)
2829
2830
2831def _min_dispatcher(a, axis=None, out=None, keepdims=None, initial=None,

Callers 1

pinvFunction · 0.90

Calls 1

_wrapreductionFunction · 0.85

Tested by

no test coverage detected