ufunc_factory

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

Return the truncated value of the input, element-wise.

See also

numpy.trunc

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

Create functional with domain/range as real numbers:

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