#[non_exhaustive]#[repr(u32)]pub enum Format {
Csr = 1,
Csc = 2,
Coo = 3,
BlockedEll = 5,
Bsr = 6,
SlicedEllpack = 7,
}Expand description
Describes the sparse matrix storage format.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Csr = 1
The matrix is stored in Compressed Sparse Row (CSR) format.
Csc = 2
The matrix is stored in Compressed Sparse Column (CSC) format.
Coo = 3
The matrix is stored in Coordinate (COO) format organized in Structure of Arrays (SoA) layout.
BlockedEll = 5
The matrix is stored in Blocked-Ellpack (Blocked-ELL) format.
Bsr = 6
The matrix is stored in Block Sparse Row (BSR) format.
SlicedEllpack = 7
Trait Implementations§
impl Copy for Format
impl Eq for Format
Source§impl From<Format> for cusparseFormat_t
impl From<Format> for cusparseFormat_t
Source§impl From<cusparseFormat_t> for Format
impl From<cusparseFormat_t> for Format
Source§fn from(value: cusparseFormat_t) -> Self
fn from(value: cusparseFormat_t) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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