ott.geometry.costs.NegDotProduct#
- class ott.geometry.costs.NegDotProduct[source]#
Negative Dot-product cost.
Should yield similar results to
SqEuclidean.\[c(x,y) = - \langle x, y\rangle\]Methods
all_pairs(x, y)Compute matrix of all pairwise costs, including the
norms.barycenter(weights, xs)Output usual barycenter of vectors.
norm(x)Compute squared Euclidean norm for vector.
twist_operator(vec, dual_vec, variable)Twist operator for negative dot-product cost.