pub struct SymbolicPattern {
pub nrows: usize,
pub ncols: usize,
pub row_ptr: Vec<usize>,
pub col_indices: Vec<usize>,
}Expand description
The sparsity pattern (structure) of a sparse matrix in CSR layout.
Carries no numeric values – only the row pointers and the column indices.
Column indices are sorted ascending within each row, matching HostCsr.
Fields§
§nrows: usizeNumber of rows.
ncols: usizeNumber of columns.
row_ptr: Vec<usize>Row pointer array of length nrows + 1, monotone non-decreasing, with
row_ptr[0] == 0 and row_ptr[nrows] == nnz.
col_indices: Vec<usize>Column indices of length nnz, sorted ascending within each row and all
in the range [0, ncols).
Implementations§
Trait Implementations§
Source§impl Clone for SymbolicPattern
impl Clone for SymbolicPattern
Source§fn clone(&self) -> SymbolicPattern
fn clone(&self) -> SymbolicPattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SymbolicPattern
impl Debug for SymbolicPattern
impl Eq for SymbolicPattern
Source§impl PartialEq for SymbolicPattern
impl PartialEq for SymbolicPattern
Source§fn eq(&self, other: &SymbolicPattern) -> bool
fn eq(&self, other: &SymbolicPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SymbolicPattern
Auto Trait Implementations§
impl Freeze for SymbolicPattern
impl RefUnwindSafe for SymbolicPattern
impl Send for SymbolicPattern
impl Sync for SymbolicPattern
impl Unpin for SymbolicPattern
impl UnsafeUnpin for SymbolicPattern
impl UnwindSafe for SymbolicPattern
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