scipp.sqrt#

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

Element-wise square-root.

Parameters:
  • x (VariableLike | _cpp.Unit) – Input data.

  • out (_cpp.Variable | None, default: None) – Optional output buffer. Only supported when x is a scipp.Variable.

Raises:

scipp.DTypeError – If the dtype has no square-root, e.g., if it is a string.

Returns:

VariableLike | _cpp.Unit – The square-root values of the input.