pub struct CscPattern<'a> {
pub n: usize,
pub col_ptr: &'a [i32],
pub row_idx: &'a [i32],
}Expand description
Borrowed symmetric sparsity pattern in CSC form.
The pattern must be full-symmetric — both the upper and lower halves are present. Row indices within each column must be sorted in ascending order. Indices are 0-based.
Invariants (checked by CscPattern::new):
col_ptr.len() == n + 1col_ptr[0] == 0,col_ptris non-decreasingrow_idx.len() == col_ptr[n]- every row index is in
0..n(non-negative and< n) - row indices within each column are sorted ascending
Structural symmetry is the caller’s responsibility and is not checked here; individual ordering crates may debug-assert it.
Fields§
§n: usizeMatrix dimension.
col_ptr: &'a [i32]Column pointers. Length n + 1.
row_idx: &'a [i32]Row indices. Length col_ptr[n].
Implementations§
Trait Implementations§
Source§impl<'a> Clone for CscPattern<'a>
impl<'a> Clone for CscPattern<'a>
Source§fn clone(&self) -> CscPattern<'a>
fn clone(&self) -> CscPattern<'a>
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 moreimpl<'a> Copy for CscPattern<'a>
Auto Trait Implementations§
impl<'a> Freeze for CscPattern<'a>
impl<'a> RefUnwindSafe for CscPattern<'a>
impl<'a> Send for CscPattern<'a>
impl<'a> Sync for CscPattern<'a>
impl<'a> Unpin for CscPattern<'a>
impl<'a> UnsafeUnpin for CscPattern<'a>
impl<'a> UnwindSafe for CscPattern<'a>
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