Expand description
Distance metrics and pairwise distance computation.
DistanceType selects the metric used by every index and by
pairwise_distance. Inputs and output are borrowed through the
AsDlTensor / AsDlTensorMut traits; see the dlpack
module for the tensor model.
Enums§
- Distance
Error - Error type for pairwise distance operations.
- Distance
Type - Distance metric used for building and searching nearest neighbor indices.
Functions§
- pairwise_
distance - Computes all pairwise distances between the rows of
x(shapem × k) andy(shapen × k), writing them × nresult intodistances.