Expand description
SIMD-optimized distance metrics Uses SimSIMD when available (native), falls back to pure Rust for WASM
Functionsยง
- batch_
distances - Batch distance calculation optimized with Rayon (native) or sequential (WASM)
- cosine_
distance - Cosine distance (1 - cosine_similarity)
- distance
- Calculate distance between two vectors using the specified metric
- dot_
product_ distance - Dot product distance (negative for maximization)
- euclidean_
distance - Euclidean (L2) distance
- manhattan_
distance - Manhattan (L1) distance