From 79ef862fe9bd5f6d97a864c36274e0eb69468025 Mon Sep 17 00:00:00 2001 From: Dave Farnham Date: Sun, 9 May 2021 14:58:26 -0600 Subject: [PATCH] Fix docs on csc_data(), csc_data_mut() --- nalgebra-sparse/src/csc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nalgebra-sparse/src/csc.rs b/nalgebra-sparse/src/csc.rs index 3a4d3f6f..6a88c1d5 100644 --- a/nalgebra-sparse/src/csc.rs +++ b/nalgebra-sparse/src/csc.rs @@ -440,12 +440,12 @@ impl CscMatrix { .expect("Out of bounds matrix indices encountered") } - /// Returns a triplet of slices `(row_offsets, col_indices, values)` that make up the CSC data. + /// Returns a triplet of slices `(col_offsets, row_indices, values)` that make up the CSC data. pub fn csc_data(&self) -> (&[usize], &[usize], &[T]) { self.cs.cs_data() } - /// Returns a triplet of slices `(row_offsets, col_indices, values)` that make up the CSC data, + /// Returns a triplet of slices `(col_offsets, row_indices, values)` that make up the CSC data, /// where the `values` array is mutable. pub fn csc_data_mut(&mut self) -> (&[usize], &[usize], &mut [T]) { self.cs.cs_data_mut()