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