InnerProductOperator
- class odl.InnerProductOperator(*args, **kwargs)
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
DistOperator : Distance to a fixed space element. NormOperator : Vector space norm as operator.
- __init__(vector)[source]
Initialize a new instance.
Parameters
- vector
LinearSpaceElement The element to take the inner product with.
Examples
>>> r3 = odl.rn(3) >>> x = r3.element([1, 2, 3]) >>> op = InnerProductOperator(x) >>> op(r3.element([1, 2, 3])) 14.0
- vector