FunctionalLeftScalarMult¶
- class odl.solvers.functional.functional.FunctionalLeftScalarMult(*args, **kwargs)[source]¶
Bases:
Functional
,OperatorLeftScalarMult
Scalar multiplication of functional from the left.
Given a functional
f
and a scalarscalar
, this represents the functional(scalar * f)(x) == scalar * f(x)
.Functional.__rmul__
takes care of the case scalar = 0.- Attributes:
adjoint
Adjoint of this operator.
convex_conj
Convex conjugate functional of the scaled functional.
domain
Set of objects on which this operator can be evaluated.
functional
The original functional.
grad_lipschitz
Lipschitz constant for the gradient of the functional.
gradient
Gradient operator of the functional.
inverse
Inverse of this operator.
is_functional
True
if this operator's range is aField
.is_linear
True
if this operator is linear.operator
The operator part of this multiplication.
proximal
Proximal factory of the scaled functional.
range
Set in which the result of an evaluation of this operator lies.
scalar
The scalar part of this multiplication.
Methods
__call__
(x[, out])Return
self(x[, out, **kwargs])
.bregman
(point, subgrad)Return the Bregman distance functional.
derivative
(point)Return the derivative operator in the given point.
norm
([estimate])Return the operator norm of this operator.
translated
(shift)Return a translation of the functional.
- __init__(func, scalar)[source]¶
Initialize a new instance.
- Parameters:
- func
Functional
Functional to be scaled.
- scalarfloat, nonzero
Number with which to scale the functional.
- func