scipp.max

scipp.max

scipp.max(x, dim=None, *, out=None)

Element-wise max over the specified dimension or all dimensions if not provided.

Parameters
Raises

If the dimension does not exist, or the dtype cannot be summed, e.g., if it is a string.

Returns

The max of the input values.

Seealso

scipp.nanmax(), scipp.min().

Return type

scipp._scipp.core.Variable