copysign

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

Change the sign of x1 to that of x2, element-wise.

See also

numpy.copysign

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.copysign(space)