Skip to content

Commit

Permalink
Merge pull request #894 from dfarnham/dev
Browse files Browse the repository at this point in the history
Fix docs on csc_data(), csc_data_mut()
  • Loading branch information
sebcrozet committed May 10, 2021
2 parents fb7c22f + 79ef862 commit f9a128a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nalgebra-sparse/src/csc.rs
Expand Up @@ -440,12 +440,12 @@ impl<T> CscMatrix<T> {
.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()
Expand Down

0 comments on commit f9a128a

Please sign in to comment.