OperatorLeftScalarMult¶
- class odl.operator.operator.OperatorLeftScalarMult(*args, **kwargs)[source]¶
Bases:
OperatorExpression type for the operator left scalar multiplication.
OperatorLeftScalarMult(op, s)(x) == s * op(x)The scalar multiplication is well-defined only if
op.rangeis aLinearSpace.- Attributes:
adjointAdjoint of this operator.
domainSet of objects on which this operator can be evaluated.
inverseInverse of this operator.
is_functionalTrueif this operator's range is aField.is_linearTrueif this operator is linear.operatorThe operator part of this multiplication.
rangeSet in which the result of an evaluation of this operator lies.
scalarThe scalar part of this multiplication.
Methods
__call__(x[, out])Return
self(x[, out, **kwargs]).derivative(x)Return the derivative at
x.norm([estimate])Return the operator norm of this operator.
- __init__(operator, scalar)[source]¶
Initialize a new
OperatorLeftScalarMultinstance.- Parameters:
- operator
Operator Operator in the scalar multiplication. Its
rangemust be aLinearSpaceorField.- scalar
operator.range.fieldelement A real or complex number, depending on the field of the range.
- operator
Examples
>>> space = odl.rn(3) >>> operator = odl.IdentityOperator(space) >>> left_mul_op = OperatorLeftScalarMult(operator, 3) >>> left_mul_op([1, 2, 3]) rn(3).element([ 3., 6., 9.])