#[non_exhaustive]#[repr(u32)]pub enum Operation {
NonTranspose = 0,
Transpose = 1,
ConjugateTranspose = 2,
}Expand description
Selects the operation applied to an input, such as a sparse matrix or vector.
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.
NonTranspose = 0
Non-transpose operation.
Transpose = 1
Transpose operation.
ConjugateTranspose = 2
Conjugate transpose operation.
Implementations§
Trait Implementations§
impl Copy for Operation
impl Eq for Operation
Source§impl From<Operation> for cusparseOperation_t
impl From<Operation> for cusparseOperation_t
Source§impl From<cusparseOperation_t> for Operation
impl From<cusparseOperation_t> for Operation
Source§fn from(value: cusparseOperation_t) -> Self
fn from(value: cusparseOperation_t) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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