ConstantFunctional

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

Bases: Functional

The constant functional.

This functional maps all elements in the domain to a given, constant value.

__init__(space, constant)[source]

Initialize a new instance.

Parameters

spaceLinearSpace

Domain of the functional.

constantelement in domain.field

The constant value of the functional