QuadraticForm¶
- class odl.solvers.functional.default_functionals.QuadraticForm(*args, **kwargs)[source]¶
Bases:
FunctionalFunctional for a general quadratic form
x^T A x + b^T x + c.- Attributes:
adjointAdjoint of this operator (abstract).
constantConstant offset of the functional.
convex_conjThe convex conjugate functional of the quadratic form.
domainSet of objects on which this operator can be evaluated.
grad_lipschitzLipschitz constant for the gradient of the functional.
gradientGradient operator of the functional.
inverseReturn the operator inverse.
is_functionalTrueif this operator's range is aField.is_linearTrueif this operator is linear.operatorOperator for the quadratic part of the functional.
proximalProximal factory of the functional.
rangeSet in which the result of an evaluation of this operator lies.
vectorVector for the linear part of the functional.
Methods
__call__(x[, out])Return
self(x[, out, **kwargs]).bregman(point, subgrad)Return the Bregman distance functional.
derivative(point)Return the derivative operator in the given point.
norm([estimate])Return the operator norm of this operator.
translated(shift)Return a translation of the functional.
- __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