HP MLIB User's Guide Vol. 1 7th Ed.

224 HP MLIB User’s Guide
SGEMM/DGEMM/CGEMM/ZGEMM Matrix-matrix multiply
Input transa Transposition option for A:
’N’ or ’n’ Use m-by-k matrix A
’T’ or ’t’ Use A
T
where A is a k-by-m matrix
’C’ or ’c’ Use A* where A is a k-by-m matrix
where A
T
is the transpose of A and A* is the conjugate
transpose. In the real subprograms, ’C’ and ’c’ have the
same meaning as ’T’ and ’t’.
transb Transposition option for B:
’N’ or ’n’ Use k-by-n matrix B
’T’ or ’t’ Use B
T
where B is an n-by-k matrix
’C’ or ’c’ Use B* where B is an n-by-k matrix
where B
T
is the transpose of B and B* is the conjugate
transpose. In the real subprograms, ’C’ and ’c’ have the
same meaning as ’T’ and ’t’.
m Number of rows in matrix C, m 0. If m = 0, the
subprograms do not reference a, b, or c.
n Number of columns in matrix C, n 0. If n = 0, the
subprograms do not reference a, b, or c.
k The middle dimension of the matrix multiply, . If
, the subprograms compute C ←βC without
referencing a or b.
alpha The scalar α. If alpha = 0, the subprograms compute
C ←βC without referencing a or b.
a Array containing the matrix A, whose size is indicated
by transa:
’N’ or ’n’ A is an m-by-k matrix
otherwise A is a k-by-m matrix
lda The leading dimension of array a as declared in the
calling program unit, with lda max (the number of
rows of A,1).
b Array containing the matrix B, whose size is indicated
by transb:
’N’ or ’n’ B is a k-by-n matrix
otherwise B is an n-by-k matrix
ldb The leading dimension of array b as declared in the
calling program unit, with ldb max (the number of
rows of B,1).
k 0
k 0=