pub struct EllMatrix<'a> { /* private fields */ }Implementations§
Source§impl<'a> EllMatrix<'a>
impl<'a> EllMatrix<'a>
pub fn new( rows: usize, columns: usize, width: usize, 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 width(&self) -> usize
pub const fn column_indices(&self) -> &'a [u32]
pub const fn values(&self) -> &'a [f32]
pub const fn index_base(&self) -> IndexBase
pub const fn padding_index() -> u32
Sourcepub fn to_csr(self) -> Result<CsrMatrixOwned, SparseError>
pub fn to_csr(self) -> Result<CsrMatrixOwned, SparseError>
Convert rocSPARSE’s column-major ELL storage (slot * rows + row)
to CSR, ignoring out-of-range padding columns.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EllMatrix<'a>
impl<'a> RefUnwindSafe for EllMatrix<'a>
impl<'a> Send for EllMatrix<'a>
impl<'a> Sync for EllMatrix<'a>
impl<'a> Unpin for EllMatrix<'a>
impl<'a> UnsafeUnpin for EllMatrix<'a>
impl<'a> UnwindSafe for EllMatrix<'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