#[repr(u32)]pub enum cusparseDiagType_t {
CUSPARSE_DIAG_TYPE_NON_UNIT = 0,
CUSPARSE_DIAG_TYPE_UNIT = 1,
}Expand description
This type indicates if the matrix diagonal entries are unity. The diagonal elements are always assumed to be present, but if cusparseDiagType_t::CUSPARSE_DIAG_TYPE_UNIT is passed to an API routine, then the routine assumes that all diagonal entries are unity and will not read or modify those entries. Note that in this case the routine assumes the diagonal entries are equal to one, regardless of what those entries are actually set to in memory.
Variants§
CUSPARSE_DIAG_TYPE_NON_UNIT = 0
The matrix diagonal has non-unit elements.
CUSPARSE_DIAG_TYPE_UNIT = 1
The matrix diagonal has unit elements.
Trait Implementations§
Source§impl Clone for cusparseDiagType_t
impl Clone for cusparseDiagType_t
Source§fn clone(&self) -> cusparseDiagType_t
fn clone(&self) -> cusparseDiagType_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 cusparseDiagType_t
impl Debug for cusparseDiagType_t
Source§impl Hash for cusparseDiagType_t
impl Hash for cusparseDiagType_t
Source§impl Ord for cusparseDiagType_t
impl Ord for cusparseDiagType_t
Source§fn cmp(&self, other: &cusparseDiagType_t) -> Ordering
fn cmp(&self, other: &cusparseDiagType_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 cusparseDiagType_t
impl PartialEq for cusparseDiagType_t
Source§fn eq(&self, other: &cusparseDiagType_t) -> bool
fn eq(&self, other: &cusparseDiagType_t) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for cusparseDiagType_t
impl PartialOrd for cusparseDiagType_t
impl Copy for cusparseDiagType_t
impl Eq for cusparseDiagType_t
impl StructuralPartialEq for cusparseDiagType_t
Auto Trait Implementations§
impl Freeze for cusparseDiagType_t
impl RefUnwindSafe for cusparseDiagType_t
impl Send for cusparseDiagType_t
impl Sync for cusparseDiagType_t
impl Unpin for cusparseDiagType_t
impl UnsafeUnpin for cusparseDiagType_t
impl UnwindSafe for cusparseDiagType_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