Skip to main content

dot

Function dot 

Source
pub fn dot(a: &Hypervector, b: &Hypervector) -> f64
Expand description

Dot product of two hypervectors (cosine similarity). M1+M3: Uses XOR+popcount dot + precomputed norm.