Skip to main content

batch_distances

Function batch_distances 

Source
pub fn batch_distances(
    query: &[f32],
    vectors: &[Vec<f32>],
    metric: DistanceMetric,
) -> Result<Vec<f32>>
Expand description

Batch distance calculation optimized with Rayon (native) or sequential (WASM)