pub fn l2norm_rows(x: &[f32], d: usize, eps: f32) -> Vec<f32>Expand description
2026-09-25: x / sqrt(sum(x^2) + eps) over the trailing dimension, not x / max(norm, eps);
the two differ for small-norm rows. The GPU l2_norm_bf16 uses the same form.