absolute

odl.ufunc_ops.ufunc_ops.absolute(domain=RealNumbers())

Calculate the absolute value element-wise.

See also

numpy.absolute

Notes

This creates a Operator/Functional that applies a ufunc pointwise.

Examples

Create operator that acts pointwise on a TensorSpace

>>> space = odl.rn(3)
>>> op = odl.ufunc_ops.absolute(space)

Create functional with domain/range as real numbers:

>>> func = odl.ufunc_ops.absolute()