General Matrix Multiply

The General Matrix Multiply (GEMM) is a subroutine in the Basic Linear Algebra Subprograms (BLAS) which performs matrix multiplication, that is the multiplication of two matrices. This includes:

  • SGEMM for single precision,
  • DGEMM for double-precision,
  • CGEMM for complex single precision, and
  • ZGEMM for complex double precision.

GEMM is often tuned by High Performance Computing vendors to run as fast as possible, because it is the building block for so many other routines. It is also the most important routine in the LINPACK benchmark. For this reason, implementations of fast BLAS library typically focus first on GEMM performance.

Read more about General Matrix Multiply:  Operation, Optimization

Famous quotes containing the words general, matrix and/or multiply:

    “The general so likes your music, that he desires you for love’s sake to make no more noise with it.”
    —William Shakespeare (1564–1616)

    ““The matrix is God?”
    “In a manner of speaking, although it would be more accurate ... to say that the matrix has a God, since this being’s omniscience and omnipotence are assumed to be limited to the matrix.”
    “If it has limits, it isn’t omnipotent.”
    “Exactly.... Cyberspace exists, insofar as it can be said to exist, by virtue of human agency.””
    —William Gibson (b. 1948)

    “Off south, the bison multiply so fast
    a slaughter’s mandatory every spring
    and every spring the creeks get fat
    and Kicking Horse fills up.”
    —Richard Hugo (1923–1982)