Function max
Source pub fn max<T, D>(
array: &ArrayView<'_, T, D>,
axis: Option<Axis>,
) -> Result<Array<T, Ix1>, &'static str>
Expand description
Calculate the maximum value(s) of array elements
§Arguments
array - The input array
axis - Optional axis along which to compute the maximum (None for global maximum)
§Returns
The maximum value(s) of the array elements
§Errors
Returns an error if the array is empty.