normalize_rows

Function normalize_rows 

Source
pub fn normalize_rows(arr: &Array2<f32>) -> Array2<f32>
Expand description

Normalize rows of a 2D array to unit length.

§Arguments

  • arr - Input array of shape [N, dim]

§Returns

Normalized array