- class ott.geometry.costs.SqPNorm(p)#
Squared p-norm of the difference of two vectors.
Uses custom implementation of norm to avoid NaN values when differentiating the norm of x-x.
float) – Power of the p-norm, \(\ge 1\).
Compute matrix of all pairwise costs, including the
Compute matrix of all pairwise costs, excluding the
TI function acting on difference of \(x-y\) to output cost.
Legendre transform of
Compute cost as evaluation of