pub fn dot_product(a: &[f32], b: &[f32]) -> f32
Dot product of two equal-length slices. For unit vectors this equals the cosine similarity.