#[repr(u32)]pub enum cusparseFormat_t {
CUSPARSE_FORMAT_CSR = 1,
CUSPARSE_FORMAT_CSC = 2,
CUSPARSE_FORMAT_COO = 3,
CUSPARSE_FORMAT_BLOCKED_ELL = 5,
CUSPARSE_FORMAT_BSR = 6,
CUSPARSE_FORMAT_SLICED_ELLPACK = 7,
}Expand description
This type indicates the format of the sparse matrix. See cuSPARSE Storage Formats for their description.
Variants§
CUSPARSE_FORMAT_CSR = 1
The matrix is stored in Compressed Sparse Row (CSR) format.
CUSPARSE_FORMAT_CSC = 2
The matrix is stored in Compressed Sparse Column (CSC) format.
CUSPARSE_FORMAT_COO = 3
The matrix is stored in Coordinate (COO) format organized in Structure of Arrays (SoA) layout.
CUSPARSE_FORMAT_BLOCKED_ELL = 5
The matrix is stored in Blocked-Ellpack (Blocked-ELL) format.
CUSPARSE_FORMAT_BSR = 6
The matrix is stored in Block Sparse Row (BSR) format.
CUSPARSE_FORMAT_SLICED_ELLPACK = 7
Trait Implementations§
Source§impl Clone for cusparseFormat_t
impl Clone for cusparseFormat_t
Source§fn clone(&self) -> cusparseFormat_t
fn clone(&self) -> cusparseFormat_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for cusparseFormat_t
impl Debug for cusparseFormat_t
Source§impl Hash for cusparseFormat_t
impl Hash for cusparseFormat_t
Source§impl Ord for cusparseFormat_t
impl Ord for cusparseFormat_t
Source§fn cmp(&self, other: &cusparseFormat_t) -> Ordering
fn cmp(&self, other: &cusparseFormat_t) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for cusparseFormat_t
impl PartialEq for cusparseFormat_t
Source§fn eq(&self, other: &cusparseFormat_t) -> bool
fn eq(&self, other: &cusparseFormat_t) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for cusparseFormat_t
impl PartialOrd for cusparseFormat_t
impl Copy for cusparseFormat_t
impl Eq for cusparseFormat_t
impl StructuralPartialEq for cusparseFormat_t
Auto Trait Implementations§
impl Freeze for cusparseFormat_t
impl RefUnwindSafe for cusparseFormat_t
impl Send for cusparseFormat_t
impl Sync for cusparseFormat_t
impl Unpin for cusparseFormat_t
impl UnsafeUnpin for cusparseFormat_t
impl UnwindSafe for cusparseFormat_t
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