scipp.abs#

scipp.abs(x, *, out=None)#

Element-wise absolute value.

Parameters
Raises

If the dtype has no absolute value, e.g., if it is a string.

Returns

Union[Variable, DataArray, Dataset] – The absolute values of the input.

Seealso

scipp.norm() for vector-like dtype.