gemm (General Matrix Multiply)
gemmfunction
File:
/src/linalg.hppLines 252–275GEMM for 1 byte types.
template <typename AlphaType,
typename OCMShapeA,
typename OCMShapeB,
typename BetaType,
typename OCMShapeC,
isOcmTensor = 0,
isOcmTensor = 0,
isOcmTensor = 0,
std::enable_if_t<std::is_integral<typename OCMShapeB::elemType>::value &&
sizeof(typename OCMShapeB::elemType) == 1, int> = 0>
INLINE void gemm(AlphaType alpha,
OCMShapeA& matA,
OCMShapeB& matB,
BetaType beta,
OCMShapeC& matC,
OCMShapeC& matOut)Template Parameters
| Name | Type | Default | Description |
|---|---|---|---|
AlphaType | typename | for the scalar alpha | |
OCMShapeA | typename | Type for the matrix A (In OCM) | |
OCMShapeB | typename | Type for the matrix B (In OCM) | |
BetaType | typename | Type for the scalar beta | |
OCMShapeC | typename | Type for the matrix C (In OCM) |
Parameters
| Name | Type | Description |
|---|---|---|
alpha | AlphaType | the scalar alpha. |
matA | OCMShapeA& | the first matrix, A. |
matB | OCMShapeB& | the second matrix, B. |
beta | BetaType | the scalar beta. |
matC | OCMShapeC& | matrix C. |
matOut | OCMShapeC& | output matrix. |
Returns
INLINE void
