#[non_exhaustive]#[repr(u32)]pub enum TblisReduceOp {
Sum = 0,
SumAbs = 1,
Max = 2,
MaxAbs = 3,
Min = 4,
MinAbs = 5,
Norm2 = 6,
}Expand description
Reduction operations supported by TBLIS.
The enum variants correspond to tblis_ffi::tblis::reduce_t.
This enum can be constructed from strings (case-insensitive, and ignoring -, _, and spaces),
e.g., "sum", "SumAbs", `“NORM-2”, etc.
Supported operations include:
Sum: Sum of elements.SumAbs: Sum of absolute values (also known asNorm1L1 norm).Max: Maximum value.MaxAbs: Maximum absolute value (also known asNormInfInfinity norm).Min: Minimum value.MinAbs: Minimum absolute value.Norm2: Euclidean norm (L2 norm).
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.
Implementations§
Trait Implementations§
Source§impl Clone for TblisReduceOp
impl Clone for TblisReduceOp
Source§fn clone(&self) -> TblisReduceOp
fn clone(&self) -> TblisReduceOp
Returns a duplicate of the value. Read more
1.0.0 · 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 TblisReduceOp
impl Debug for TblisReduceOp
Source§impl From<&str> for TblisReduceOp
impl From<&str> for TblisReduceOp
Source§impl From<TblisReduceOp> for reduce_t
impl From<TblisReduceOp> for reduce_t
Source§fn from(op: TblisReduceOp) -> Self
fn from(op: TblisReduceOp) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TblisReduceOp
impl PartialEq for TblisReduceOp
impl Copy for TblisReduceOp
impl Eq for TblisReduceOp
impl StructuralPartialEq for TblisReduceOp
Auto Trait Implementations§
impl Freeze for TblisReduceOp
impl RefUnwindSafe for TblisReduceOp
impl Send for TblisReduceOp
impl Sync for TblisReduceOp
impl Unpin for TblisReduceOp
impl UnwindSafe for TblisReduceOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more