pub fn row_scale(a: &CsrMatrix, scales: &[f64]) -> CsrMatrix
Row-scale a CSR matrix: D_r A where D_r = diag(scales).