ProductSpaceCustomDist
- class odl.core.space.pspace.ProductSpaceCustomDist(dist)[source]
Bases:
CustomDistClass for handling a user-specified distance on
ProductSpace.Note that this removes
innerandnorm.- __init__(dist)[source]
Initialize a new instance.
Parameters
- distcallable
The distance function defining a metric on
ProductSpace. It must accept twoProductSpaceElementarguments and fulfill the following mathematical conditions for any three space elementsx, y, z:dist(x, y) >= 0dist(x, y) = 0if and only ifx = ydist(x, y) = dist(y, x)dist(x, y) <= dist(x, z) + dist(z, y)