InnerProductOperator¶
- class odl.operator.default_ops.InnerProductOperator(*args, **kwargs)[source]¶
 Bases:
OperatorOperator taking the inner product with a fixed space element.
Implements:
InnerProductOperator(y)(x) <==> y.inner(x)
This is only applicable in inner product spaces.
See also
DistOperatorDistance to a fixed space element.
NormOperatorVector space norm as operator.
- Attributes:
 TFixed vector of this operator.
adjointAdjoint of this operator.
domainSet of objects on which this operator can be evaluated.
inverseReturn the operator inverse.
is_functionalTrueif this operator's range is aField.is_linearTrueif this operator is linear.rangeSet in which the result of an evaluation of this operator lies.
vectorElement to take the inner product with.
Methods
__call__(x[, out])Return
self(x[, out, **kwargs]).derivative(point)Return the operator derivative at
point.norm([estimate])Return the operator norm of this operator.
- __init__(vector)[source]¶
 Initialize a new instance.
- Parameters:
 - vector
LinearSpaceElement The element to take the inner product with.
- vector
 
Examples
>>> r3 = odl.rn(3) >>> x = r3.element([1, 2, 3]) >>> op = InnerProductOperator(x) >>> op(r3.element([1, 2, 3])) 14.0