pub struct CsrPattern {
pub rows: usize,
pub cols: usize,
pub indptr: Vec<usize>,
pub indices: Vec<usize>,
}Expand description
Structure of a sparse matrix in zero-based compressed sparse row (CSR) form.
Row r holds the column indices indices[indptr[r]..indptr[r + 1]], which
must be strictly increasing (sorted, no duplicates) and smaller than cols.
Fields§
§rows: usizeNumber of rows.
cols: usizeNumber of columns.
indptr: Vec<usize>Row pointers, rows + 1 entries, starting at 0 and ending at indices.len().
indices: Vec<usize>Column index of every stored entry.
Implementations§
Trait Implementations§
Source§impl Clone for CsrPattern
impl Clone for CsrPattern
Source§impl Debug for CsrPattern
impl Debug for CsrPattern
impl Eq for CsrPattern
Source§impl PartialEq for CsrPattern
impl PartialEq for CsrPattern
impl StructuralPartialEq for CsrPattern
Auto Trait Implementations§
impl Forget for CsrPattern
impl Freeze for CsrPattern
impl Move for CsrPattern
impl RefUnwindSafe for CsrPattern
impl Send for CsrPatternwhere
RawVecInner: Send,
impl Sync for CsrPatternwhere
RawVecInner: Sync,
impl Unpin for CsrPattern
impl UnsafeUnpin for CsrPattern
impl UnwindSafe for CsrPatternwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more