Skip to main content

l2_normalize

Function l2_normalize 

Source
pub fn l2_normalize(matrix: &mut ArrayViewMut2<'_, f32>)
Expand description

L2-normalize matrix in place, row by row. Rows with norm below EPS are zeroed out (i.e. left unchanged at all-zero) to avoid NaN.