pub struct BlockedCsr<T: ComplexField> {
pub num_rows: usize,
pub num_cols: usize,
pub block_size: usize,
pub num_block_rows: usize,
pub num_block_cols: usize,
pub blocks: Vec<Array2<T>>,
pub block_col_indices: Vec<usize>,
pub block_row_ptrs: Vec<usize>,
}Expand description
Blocked CSR format for hierarchical matrices
Stores the matrix as a collection of dense blocks at the leaf level of a hierarchical decomposition.
Fields§
§num_rows: usizeNumber of rows
num_cols: usizeNumber of columns
block_size: usizeBlock size (rows and columns per block)
num_block_rows: usizeNumber of block rows
num_block_cols: usizeNumber of block columns
blocks: Vec<Array2<T>>Dense blocks stored in CSR-like format
block_col_indices: Vec<usize>Block column indices
block_row_ptrs: Vec<usize>Block row pointers
Implementations§
Trait Implementations§
Source§impl<T: Clone + ComplexField> Clone for BlockedCsr<T>
impl<T: Clone + ComplexField> Clone for BlockedCsr<T>
Source§fn clone(&self) -> BlockedCsr<T>
fn clone(&self) -> BlockedCsr<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for BlockedCsr<T>
impl<T> RefUnwindSafe for BlockedCsr<T>where
T: RefUnwindSafe,
impl<T> Send for BlockedCsr<T>
impl<T> Sync for BlockedCsr<T>
impl<T> Unpin for BlockedCsr<T>
impl<T> UnwindSafe for BlockedCsr<T>where
T: RefUnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more