Weighting
- class odl.core.space.weightings.weighting.Weighting(impl, device, exponent=2.0)[source]
Bases:
objectAbstract base class for weighting of finite-dimensional spaces.
This class and its subclasses serve as a simple means to evaluate and compare weighted inner products, norms and metrics semantically rather than by identity on a pure function level.
The functions are implemented similarly to
Operator, but without extra type checks of input parameters - this is done in the callers of theLinearSpaceinstance where these functions are being used.- __init__(impl, device, exponent=2.0)[source]
Initialize a new instance.
Parameters
- implstring
Specifier for the implementation backend
- device :
device identifier, compatible with the backend associated with
impl- exponentpositive float, optional
Exponent of the norm. For values other than 2.0, the inner product is not defined.