OperatorVectorSum¶
- class odl.operator.operator.OperatorVectorSum(*args, **kwargs)[source]¶
Bases:
OperatorOperator that computes
op(x) + y.OperatorVectorSum(op, y)(x) == op(x) + y- Attributes:
adjointAdjoint of this operator (abstract).
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.operatorThe operator to apply.
rangeSet in which the result of an evaluation of this operator lies.
vectorThe constant operator range element to add.
Methods
__call__(x[, out])Return
self(x[, out, **kwargs]).derivative(point)Derivative the operator vector sum.
norm([estimate])Return the operator norm of this operator.
- __init__(operator, vector)[source]¶
Initialize a new instance.
- Parameters:
- operator
Operator Operator to be used in the sum. Its
Operator.rangemust be aLinearSpace.- vector
operator.rangeelement-like Vector to be added to the operator result.
- operator
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.])