pub struct BlockedCsr {
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<Complex64>>,
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<Complex64>>Dense blocks stored in CSR-like format Each block is a dense matrix
block_col_indices: Vec<usize>Block column indices
block_row_ptrs: Vec<usize>Block row pointers
Implementations§
Trait Implementations§
Source§impl Clone for BlockedCsr
impl Clone for BlockedCsr
Source§fn clone(&self) -> BlockedCsr
fn clone(&self) -> BlockedCsr
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 Freeze for BlockedCsr
impl RefUnwindSafe for BlockedCsr
impl Send for BlockedCsr
impl Sync for BlockedCsr
impl Unpin for BlockedCsr
impl UnsafeUnpin for BlockedCsr
impl UnwindSafe for BlockedCsr
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