- class ott.geometry.costs.SqEuclidean[source]#
Squared Euclidean distance.
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.