pub enum MatmulKind {
General,
MatVec,
VecMat,
ScalarVec,
VecScalar,
InnerProduct,
OuterProduct,
ScalarProduct,
}
Expand description
Interpretation of matrix multiplication based on input shapes.
Variants§
General
(M, K) @ (K, N) → (M, N), with M, K, N > 1
MatVec
(M, K) @ (K, 1) → (M, 1)
VecMat
(1, K) @ (K, N) → (1, N)
ScalarVec
(1, 1) @ (1, N) → (1, N)
VecScalar
(M, 1) @ (1, 1) → (M, 1)
InnerProduct
(1, K) @ (K, 1) → (1, 1)
OuterProduct
(M, 1) @ (1, N) → (M, N)
ScalarProduct
(1, 1) @ (1, 1) → (1, 1)
Trait Implementations§
Source§impl Clone for MatmulKind
impl Clone for MatmulKind
Source§fn clone(&self) -> MatmulKind
fn clone(&self) -> MatmulKind
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 MatmulKind
impl Debug for MatmulKind
Source§impl<'de> Deserialize<'de> for MatmulKind
impl<'de> Deserialize<'de> for MatmulKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&MatmulProblem> for MatmulKind
impl From<&MatmulProblem> for MatmulKind
Source§fn from(problem: &MatmulProblem) -> Self
fn from(problem: &MatmulProblem) -> Self
Converts to this type from the input type.
Source§impl From<MatmulProblem> for MatmulKind
impl From<MatmulProblem> for MatmulKind
Source§fn from(problem: MatmulProblem) -> Self
fn from(problem: MatmulProblem) -> Self
Converts to this type from the input type.
Source§impl From<MatmulProblemSize> for MatmulKind
impl From<MatmulProblemSize> for MatmulKind
Source§fn from(matmul_size: MatmulProblemSize) -> Self
fn from(matmul_size: MatmulProblemSize) -> Self
Converts to this type from the input type.
Source§impl Hash for MatmulKind
impl Hash for MatmulKind
Source§impl PartialEq for MatmulKind
impl PartialEq for MatmulKind
Source§impl Serialize for MatmulKind
impl Serialize for MatmulKind
impl Eq for MatmulKind
impl StructuralPartialEq for MatmulKind
Auto Trait Implementations§
impl Freeze for MatmulKind
impl RefUnwindSafe for MatmulKind
impl Send for MatmulKind
impl Sync for MatmulKind
impl Unpin for MatmulKind
impl UnwindSafe for MatmulKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.