OperatorVectorSum

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

Bases: odl.operator.operator.Operator

Operator that computes op(x) + y.

OperatorVectorSum(op, y)(x) == op(x) + y

Attributes
adjoint

Adjoint of this operator (abstract).

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.

operator

The operator to apply.

range

Set in which the result of an evaluation of this operator lies.

vector

The constant operator range element to add.

Methods

_call(self, x[, out])

Evaluate the residual at x and write to out if given.

derivative(self, point)

Derivative the operator vector sum.

norm(self[, estimate])

Return the operator norm of this operator.

__init__(self, operator, vector)[source]

Initialize a new instance.

Parameters
operatorOperator

Operator to be used in the sum. Its Operator.range must be a LinearSpace.

vectoroperator.range element-like

Vector to be added to the operator result.

Examples

>>> r3 = odl.rn(3)
>>> y = r3.element([1, 2, 3])
>>> ident_op = odl.IdentityOperator(r3)
>>> sum_op = odl.OperatorVectorSum(ident_op, y)
>>> x = r3.element([4, 5, 6])
>>> sum_op(x)
rn(3).element([ 5.,  7.,  9.])