NumpyTensorSpaceConstWeighting¶
-
class
odl.space.npy_tensors.
NumpyTensorSpaceConstWeighting
(const, exponent=2.0)[source]¶ Bases:
odl.space.weighting.ConstWeighting
Weighting of a
NumpyTensorSpace
by a constant.See
Notes
for mathematical details.- Attributes
Methods
dist
(self, x1, x2)Return the weighted distance between
x1
andx2
.equiv
(self, other)Test if other is an equivalent weighting.
inner
(self, x1, x2)Return the weighted inner product of
x1
andx2
.norm
(self, x)Return the weighted norm of
x
.-
__init__
(self, 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.