blosc2.max#

blosc2.max(ndarr: NDArray | NDField | C2Array, axis=None, keepdims=False, **kwargs)#

Return the maximum along a given axis.

Parameters:
  • ndarr (NDArray or NDField or C2Array or LazyExpr) – The input array or expression.

  • axis (int or tuple of ints, optional) – Axis or axes along which to operate. By default, flattened input is used.

  • keepdims (bool, optional) – If this is set to True, the axes which are reduced are left in the result as dimensions with size one. With this option, the result will broadcast correctly against the input array.

Returns:

max_along_axis – The maximum of the elements along the axis.

Return type:

np.ndarray or NDArray or scalar

References

np.max