pub fn l2_normalize(vec: &[f32]) -> Vec<f32>
L2 normalize a vector to unit length
Ported from examples/embeddings.rs l2_normalize() function.
vec