Unlock this feature

This feature isn’t part of your plan yet

Contact sales to get upgraded to the full DevStudio experience.

Unlock this feature

This feature isn't part of your plan yet.

Linear Algebra

gemm (General Matrix Multiply)

gemmfunction
File: /src/linalg.hppLines 252–275

GEMM 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)
NameTypeDefaultDescription
AlphaTypetypenamefor the scalar alpha
OCMShapeAtypenameType for the matrix A (In OCM)
OCMShapeBtypenameType for the matrix B (In OCM)
BetaTypetypenameType for the scalar beta
OCMShapeCtypenameType for the matrix C (In OCM)
NameTypeDescription
alphaAlphaTypethe scalar alpha.
matAOCMShapeA&the first matrix, A.
matBOCMShapeB&the second matrix, B.
betaBetaTypethe scalar beta.
matCOCMShapeC&matrix C.
matOutOCMShapeC&output matrix.

INLINE void

Sign in to your account

Don't have an account? 
By signing in, you are agreeing to our Terms of Use and Privacy Policy.
Quadric // One architecture. Every algorithm.

Develop.

Simulate.

Profile.

Collaborate.