ott.solvers.linear.univariate.uniform_solver#
- ott.solvers.linear.univariate.uniform_solver(prob, return_transport=False)[source]#
Univariate solver between two equally sized and uniformly weighted distributions.
- Parameters:
prob (
LinearProblem) – Problem with twopoint cloudsof shapes[n, d]and[n, d]and a ground cost. The[n,]sized probability weights are stored in attributesaandb.return_transport (
bool) – Whether to also return the mapped pairs used to compute thetransport_matrices.
- Return type:
- Returns:
The univariate output. Note that the
mass_paired_indicescan be \(0\) in some entries, but always sums to \(1\) for each of the \(d\) slices.