NumpyTensorSpaceConstWeighting¶
- class odl.space.npy_tensors.NumpyTensorSpaceConstWeighting(const, exponent=2.0)[source]¶
Bases:
ConstWeightingWeighting of a
NumpyTensorSpaceby a constant.See
Notesfor mathematical details.- Attributes:
Methods
dist(x1, x2)Return the weighted distance between
x1andx2.equiv(other)Test if other is an equivalent weighting.
inner(x1, x2)Return the weighted inner product of
x1andx2.norm(x)Return the weighted norm of
x.- __init__(const, exponent=2.0)[source]¶
Initialize a new instance.
- Parameters:
- constpositive float
Weighting constant of the inner product, norm and distance.
- exponentpositive float
Exponent of the norm. For values other than 2.0, the inner product is not defined.
Notes
For exponent 2.0, a new weighted inner product with constant
is defined as
where
standing for transposed complex
conjugate.For other exponents, only norm and dist are defined. In the case of exponent
, the weighted norm is defined
as
otherwise it is

Note that this definition does not fulfill the limit property in
, i.e.
unless
.The constant must be positive, otherwise it does not define an inner product or norm, respectively.