- class ott.geometry.costs.SqEuclidean#
Squared Euclidean distance.
Implemented as a translation invariant cost, \(h(z) = \|z\|^2\).
Compute matrix of all pairwise costs, including the
Compute matrix of all pairwise costs, excluding the
Output barycenter of vectors when using squared-Euclidean distance.
TI function acting on difference of \(x-y\) to output cost.
Legendre transform of
h()when it is convex.
Compute squared Euclidean norm for vector.
Compute minus twice the dot-product between vectors.