LpNorm

class odl.functionals.default_functionals.LpNorm(*args, **kwargs)[source]

Bases: Functional

The functional corresponding to the Lp-norm.

Notes

If the functional is defined on an \mathbb{R}^n-like space, the \| \cdot \|_p-norm is defined as

\| x \|_p = \left(\sum_{i=1}^n |x_i|^p \right)^{1/p}.

If the functional is defined on an L_2-like space, the \| \cdot \|_p-norm is defined as

\| x \|_p = \left(\int_\Omega |x(t)|^p dt. \right)^{1/p}

__init__(space, exponent)[source]

Initialize a new instance.

Parameters

spaceDiscretizedSpace or TensorSpace

Domain of the functional.

exponentfloat

Exponent for the norm (p).