OperatorRightScalarMult¶
- class odl.operator.operator.OperatorRightScalarMult(*args, **kwargs)[source]¶
Bases:
OperatorExpression type for the operator right scalar multiplication.
OperatorRightScalarMult(op, s) == op(s * x)The scalar multiplication is well-defined only if
op.domainis 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, tmp=None)[source]¶
Initialize a new
OperatorLeftScalarMultinstance.- Parameters:
- operator
Operator Operator in the scalar multiplication. Its
domainmust be aLinearSpaceorField.- scalar
operator.range.fieldelement A real or complex number, depending on the field of the operator domain.
- tmp
domainelement, optional Used to avoid the creation of a temporary when applying the operator.
- operator
Examples
>>> space = odl.rn(3) >>> operator = odl.IdentityOperator(space) >>> left_mul_op = OperatorRightScalarMult(operator, 3) >>> left_mul_op([1, 2, 3]) rn(3).element([ 3., 6., 9.])