scipp.abs#

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

Element-wise absolute value.

Parameters:
  • x (TypeVar(_T)) – Input data.

  • out (Optional[Variable], default: None) – Optional output buffer. Only supported if x is a scipp.Variable.

Raises:

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

Returns:

TypeVar(_T) – The absolute values of the input.

See also

scipp.norm