Skip to main content

batch_distances_squared

Function batch_distances_squared 

Source
pub fn batch_distances_squared(
    query: &Point3f,
    pts: &SoaPoints,
    out: &mut [f32],
)
Expand description

Compute squared Euclidean distances from query to every point in pts.

Results are written into out, which must have the same length as pts. Uses the widest SIMD available (AVX2 → SSE2 → scalar).