OperatorLeftScalarMult.derivative

OperatorLeftScalarMult.derivative(x)[source]

Return the derivative at x.

Left scalar multiplication and derivative are commutative:

OperatorLeftScalarMult(op, s).derivative(y) == OperatorLeftScalarMult(op.derivative(y), s)

Parameters:
xdomain element-like

Evaluation point of the derivative

Returns:
derivativeOperatorLeftScalarMult

Examples

>>> space = odl.rn(3)
>>> operator = odl.IdentityOperator(space) - space.element([1, 1, 1])
>>> left_mul_op = OperatorLeftScalarMult(operator, 3)
>>> derivative = left_mul_op.derivative([0, 0, 0])
>>> derivative([1, 1, 1])
rn(3).element([ 3.,  3.,  3.])