FunctionalLeftScalarMult

class odl.functionals.functional.FunctionalLeftScalarMult(*args, **kwargs)[source]

Bases: Functional, OperatorLeftScalarMult

Scalar multiplication of functional from the left.

Given a functional f and a scalar scalar, this represents the functional

(scalar * f)(x) == scalar * f(x).

Functional.__rmul__ takes care of the case scalar = 0.

__init__(func, scalar)[source]

Initialize a new instance.

Parameters

funcFunctional

Functional to be scaled.

scalarfloat, nonzero

Number with which to scale the functional.