ott.solvers.utils.match_linear#
- ott.solvers.utils.match_linear(x, y, cost_fn=None, epsilon=None, scale_cost=1.0, **kwargs)[source]#
Compute solution to a linear OT problem.
- Parameters:
x (
Array) – Source point cloud of shape[n, d].scale_cost (
Union[float,Literal['mean','max_cost','median']]) – Scaling of the cost matrix.kwargs (
Any) – Additional arguments forott.solvers.linear.solve().
- Return type:
- Returns:
Optimal transport matrix.