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.
pub fn normalize_rows<T: NabledReal>(
rows: &Array2<T>,
) -> Result<Array2<T>, EmbeddingError>Normalize each row of rows to unit L2 length.
Returns EmbeddingError::EmptyInput when rows is empty.