pub fn is_normalized(vec: &[f32], tolerance: f32) -> bool
Check if a vector is normalized (L2 norm ≈ 1.0).
vec
tolerance