InnerProductOperator¶
- class odl.operator.default_ops.InnerProductOperator(*args, **kwargs)[source]¶
Bases:
Operator
Operator 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
DistOperator
Distance to a fixed space element.
NormOperator
Vector space norm as operator.
- Attributes:
T
Fixed vector of this operator.
adjoint
Adjoint of this operator.
domain
Set of objects on which this operator can be evaluated.
inverse
Return the operator inverse.
is_functional
True
if this operator's range is aField
.is_linear
True
if this operator is linear.range
Set in which the result of an evaluation of this operator lies.
vector
Element 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