ott.geometry.costs.CostFn.all_pairs_pairwise#

CostFn.all_pairs_pairwise(x, y)[source]#

Compute matrix of all pairwise costs, excluding the norms.

Parameters
  • x (Array) – Array of shape [n, ...].

  • y (Array) – Array of shape [m, ...].

Return type

Array

Returns

Array of shape [n, m] of cost evaluations.