scipp.reciprocal#
- scipp.reciprocal(x, *, out=None)#
Element-wise reciprocal.
- 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 reciprocal, e.g., if it is a string.
- Returns:
VariableLike | _cpp.Unit – The reciprocal values of the input.