pub struct BsrMatrix<'a> { /* private fields */ }Implementations§
Source§impl<'a> BsrMatrix<'a>
impl<'a> BsrMatrix<'a>
pub fn new( block_rows: usize, block_columns: usize, block_dimension: usize, row_offsets: &'a [u32], column_indices: &'a [u32], values: &'a [f32], direction: BlockDirection, index_base: IndexBase, ) -> Result<Self, SparseError>
pub const fn block_rows(&self) -> usize
pub const fn block_columns(&self) -> usize
pub const fn block_dimension(&self) -> usize
pub const fn nnzb(&self) -> usize
pub const fn direction(&self) -> BlockDirection
pub const fn index_base(&self) -> IndexBase
pub fn rows(&self) -> usize
pub fn columns(&self) -> usize
pub fn to_csr(self) -> Result<CsrMatrixOwned, SparseError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BsrMatrix<'a>
impl<'a> RefUnwindSafe for BsrMatrix<'a>
impl<'a> Send for BsrMatrix<'a>
impl<'a> Sync for BsrMatrix<'a>
impl<'a> Unpin for BsrMatrix<'a>
impl<'a> UnsafeUnpin for BsrMatrix<'a>
impl<'a> UnwindSafe for BsrMatrix<'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