Back to Core Functions
max
Maximum value
Syntax
M = max(A) M = max(A, dim)
Description
Returns the largest element. With a dimension argument, returns the maximum along that dimension.
Parameters
| Name | Description |
|---|---|
| A | Input array (scalar or NDArray) |
| dim(optional) | Dimension (1-indexed) |
Returns
Maximum value (scalar or NDArray)