Skip to main content

parallel_cdist

Function parallel_cdist 

Source
pub fn parallel_cdist(
    points1: &ArrayBase<ViewRepr<&f64>, Dim<[usize; 2]>>,
    points2: &ArrayBase<ViewRepr<&f64>, Dim<[usize; 2]>>,
    metric: &str,
) -> Result<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, SpatialError>
Expand description

Parallel computation of cross-distance matrix

§Arguments

  • points1 - First set of points, shape (n, d)
  • points2 - Second set of points, shape (m, d)
  • metric - Distance metric to use

§Returns

  • Distance matrix, shape (n, m)