pub fn pairwise_distance(
res: &Resources,
x: &ManagedTensor,
y: &ManagedTensor,
distances: &ManagedTensor,
metric: DistanceType,
metric_arg: Option<f32>,
) -> Result<()>Expand description
Compute pairwise distances between X and Y
ยงArguments
res- Resources to usex- A matrix in device memory - shape (m, k)y- A matrix in device memory - shape (n, k)distances- A matrix in device memory that receives the output distances - shape (m, n)metric- DistanceType to use for building the indexmetric_arg- Optional value ofpfor Minkowski distances