InnerProductOperator

class odl.operator.default_ops.InnerProductOperator(*args, **kwargs)[source]

Bases: odl.operator.operator.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 a Field.

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(self, x)

Return the inner product with x.

derivative(self, point)

Return the operator derivative at point.

norm(self[, estimate])

Return the operator norm of this operator.

__init__(self, vector)[source]

Initialize a new instance.

Parameters
vectorLinearSpaceElement

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