exp2

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

Calculate 2**p for all p in the input array.

See also

numpy.exp2

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

Create functional with domain/range as real numbers:

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