ProductSpaceCustomDist

class odl.core.space.pspace.ProductSpaceCustomDist(dist)[source]

Bases: CustomDist

Class for handling a user-specified distance on ProductSpace.

Note that this removes inner and norm.

__init__(dist)[source]

Initialize a new instance.

Parameters

distcallable

The distance function defining a metric on ProductSpace. It must accept two ProductSpaceElement arguments and fulfill the following mathematical conditions for any three space elements x, y, z:

  • dist(x, y) >= 0

  • dist(x, y) = 0 if and only if x = y

  • dist(x, y) = dist(y, x)

  • dist(x, y) <= dist(x, z) + dist(z, y)