forked from M-Labs/nalgebra
Fix docs on csc_data(), csc_data_mut()
This commit is contained in:
parent
fb7c22f386
commit
79ef862fe9
@ -440,12 +440,12 @@ impl<T> CscMatrix<T> {
|
|||||||
.expect("Out of bounds matrix indices encountered")
|
.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]) {
|
pub fn csc_data(&self) -> (&[usize], &[usize], &[T]) {
|
||||||
self.cs.cs_data()
|
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.
|
/// where the `values` array is mutable.
|
||||||
pub fn csc_data_mut(&mut self) -> (&[usize], &[usize], &mut [T]) {
|
pub fn csc_data_mut(&mut self) -> (&[usize], &[usize], &mut [T]) {
|
||||||
self.cs.cs_data_mut()
|
self.cs.cs_data_mut()
|
||||||
|
Loading…
Reference in New Issue
Block a user