Skip to main content

normalize_rows

Function normalize_rows 

Source
pub fn normalize_rows<T: NabledReal>(
    rows: &Array2<T>,
) -> Result<Array2<T>, EmbeddingError>
Expand description

Normalize each row of rows to unit L2 length.

ยงErrors

Returns EmbeddingError::EmptyInput when rows is empty.