LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

GEMM

GEMM[tsa,tsb,α,a,b,β,c]

computes the matrix-matrix multiplication α optsa[a].optsb[b]+β c and resets c to the result.

Details

  • To use GEMM, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
  • The following arguments must be given:
  • tsainput stringtransposition string for a
    tsbinput stringtransposition string for b
    αinput expressionscalar mutliple
    ainput expressionrectangular matrix
    binput expressionrectangular matrix
    βinput expressionscalar multiple
    cinput/output symbolrectangular matrix; the symbol value is modified in place
  • The transposition strings describing the operators optsa and optsb and may be specified as:
  • "N"no transposition
    "T"transpose
    "C"conjugate transpose
  • Dimensions of the matrix arguments must be such that the dot product and addition are well defined.

Examples

open allclose all

Basic Examples  (1)

Load the BLAS package:

In[1]:=
Click for copyable input

Compute Transpose[a].b+2 c and save it in c:

In[2]:=
Click for copyable input
Out[2]=

Scope  (4)

Properties & Relations  (3)

Possible Issues  (2)