R/utils.R
normalize_rows.Rd
Divides each row by its sum, handling zero-sum rows.
normalize_rows(x)
A matrix
Matrix with rows summing to 1