pub struct BlockCsrMatrix {
pub block_size: usize,
pub n_block_rows: usize,
pub n_block_cols: usize,
pub row_ptr: Vec<usize>,
pub col_idx: Vec<usize>,
pub blocks: Vec<Vec<f64>>,
}Expand description
Block-CSR matrix where every stored entry is a block_size × block_size dense tile.
Fields§
§block_size: usize§n_block_rows: usize§n_block_cols: usize§row_ptr: Vec<usize>Block row start indices, length n_block_rows + 1.
col_idx: Vec<usize>Column (block) indices.
blocks: Vec<Vec<f64>>Dense tiles, each of length block_size * block_size.
Implementations§
Auto Trait Implementations§
impl Freeze for BlockCsrMatrix
impl RefUnwindSafe for BlockCsrMatrix
impl Send for BlockCsrMatrix
impl Sync for BlockCsrMatrix
impl Unpin for BlockCsrMatrix
impl UnsafeUnpin for BlockCsrMatrix
impl UnwindSafe for BlockCsrMatrix
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> 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