Functional

class odl.functionals.functional.Functional(*args, **kwargs)[source]

Bases: Operator

Implementation of a functional class.

A functional is an operator f that maps from some domain X to the field of scalars F associated with the domain:

f : X -> F.

Notes

The implementation of the functional class assumes that the domain X is a Hilbert space and that the field of scalars F is a is the real numbers. It is possible to create functions that do not fulfil these assumptions, however some mathematical results might not be valid in this case. For more information, see the ODL functional guide.

__init__(space, linear=False, grad_lipschitz=nan)[source]

Initialize a new instance.

Parameters

spaceLinearSpace

The domain of this functional, i.e., the set of elements to which this functional can be applied.

linearbool, optional

If True, the functional is considered as linear.

grad_lipschitzfloat, optional

The Lipschitz constant of the gradient. Default: nan