L1Norm
- class odl.functionals.default_functionals.L1Norm(*args, **kwargs)[source]
Bases:
LpNormThe functional corresponding to L1-norm.
The L1-norm,
||x||_1, is defined as the integral/sum of|x|.Notes
If the functional is defined on an
-like space, the
-norm is defined as
If the functional is defined on an
-like space, the
-norm is defined as
The
proximalfactory allows using vector-valued stepsizes:>>> space = odl.rn(3) >>> f = odl.functionals.L1Norm(space) >>> x = space.one() >>> f.proximal([0.5, 1.0, 1.5])(x) rn(3).element([ 0.5, 0. , 0. ])
- __init__(space)[source]
Initialize a new instance.
Parameters
- space
DiscretizedSpaceorTensorSpace Domain of the functional.
- space