QuadraticForm
- class odl.functionals.default_functionals.QuadraticForm(*args, **kwargs)[source]
Bases:
FunctionalFunctional for a general quadratic form
x^T A x + b^T x + c.- __init__(operator=None, vector=None, constant=0)[source]
Initialize a new instance.
All parameters are optional, but at least one of
opandvectorhave to be provided in order to infer the space.The computed value is:
x.inner(operator(x)) + vector.inner(x) + constant
Parameters
- operator
Operator, optional Operator for the quadratic part of the functional.
Nonemeans that this part is ignored.- vector
LinearSpaceElement, optional Vector for the linear part of the functional.
Nonemeans that this part is ignored.- constant
Operator, optional Constant offset of the functional.
- operator