quantized_euclidean_squared_simd

Function quantized_euclidean_squared_simd 

Source
pub fn quantized_euclidean_squared_simd(a: &[u8], b: &[u8]) -> u32
Expand description

Compute Euclidean distance between two quantized (u8) vectors using SIMD

Returns the squared distance to avoid sqrt overhead. If you need actual distance, take sqrt of the result.