OperatorRightScalarMult
- class odl.OperatorRightScalarMult(*args, **kwargs)
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.- __init__(operator: 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.
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.])
- operator