- class ott.geometry.costs.PNormP(p)#
p-norm to the power p (and divided by p) of the difference of two vectors.
float) – Power of the p-norm, a finite float larger than 1.0.
Compute matrix of all costs (including norms) for vectors in x / y.
Compute matrix of all pairwise-costs (no norms) for vectors in x / y.
TI function acting on difference of \(x-y\) to output cost.
Legendre transform of
h()when it is convex.
Compute cost as evaluation of