ott.geometry.costs.CostFn#
- class ott.geometry.costs.CostFn[source]#
Base class for all costs.
Methods
all_pairs
(x, y)Compute matrix of all pairwise costs, including the
norms
.barycenter
(weights, xs)Barycentric operator.
twist_operator
(vec, dual_vec, variable)Twist inverse operator of the cost function.