scipp.abs#

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

Element-wise absolute value.

Parameters
Raises

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

Returns

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

See also

scipp.norm