signbit¶
-
odl.ufunc_ops.ufunc_ops.
signbit
(domain=RealNumbers())¶ Returns element-wise True where signbit is set (less than zero).
See also
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.signbit(space)
Create functional with domain/range as real numbers:
>>> func = odl.ufunc_ops.signbit()