CustomInner¶
- class odl.space.weighting.CustomInner(inner, impl)[source]¶
Bases:
WeightingClass for handling a user-specified inner product.
- Attributes:
Methods
dist(x1, x2)Calculate the distance between two elements.
equiv(other)Test if
otheris an equivalent weighting.norm(x)Calculate the norm of an element.
- __init__(inner, impl)[source]¶
Initialize a new instance.
- Parameters:
- innercallable
The inner product implementation. It must accept two
LinearSpaceElementarguments, return an element from their space's field (real or complex number) and satisfy the following conditions for all space elementsx, y, zand scalarss:<x, y> = conj(<y, x>)<s*x + y, z> = s * <x, z> + <y, z><x, x> = 0if and only ifx = 0
- implstring
Specifier for the implementation backend.