- class ott.geometry.costs.Euclidean#
Squared Euclidean distance CostFn.
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.
Output barycenter of vectors when using squared-Euclidean distance.
Compute squared Euclidean norm for vector.
Compute minus twice the dot-product between vectors.