Skip to main content

normalize_l2

Function normalize_l2 

Source
pub(super) fn normalize_l2(vec: &mut [f32])
Expand description

L2-normalizes vec in place. If the norm is zero, leaves the vector unchanged.