Skip to main content

Module simd

Module simd 

Source
Expand description

SIMD-accelerated distance calculations for vector search.

This module provides optimized L2 (Euclidean) distance functions using the wide crate for portable SIMD across x86_64 and aarch64.

Functionsยง

l2_distance_simd
Compute L2 distance (with sqrt) using SIMD.
l2_distance_squared_simd
Compute squared L2 distance between two f32 slices using SIMD.