Back to Numerical Arrays (NumPy)
np.max
Return the maximum of an array or maximum along an axis.
Syntax
np.max(a, axis?, keepdims?)
Description
Return the maximum of an array or maximum along an axis.
Parameters
| Name | Description |
|---|---|
| a | - Input array |
| axis(optional) | - Axis along which to find maximum. null finds maximum of all elements. |
| keepdims(optional) | - If true, reduced axes are left with size 1 |
Returns
Promise<NDArray | number>