XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ zgemm()

void zgemm ( char  transa,
char  transb,
int  m,
int  n,
int  k,
doublecomplex  alpha,
int  lda,
doublecomplex  a[],
int  ldb,
doublecomplex  b[],
doublecomplex  beta,
int  ldc,
doublecomplex  c[] 
)

C <- αOp(A)Op(B) + βC (op(X) = X, XT or XH) (complex matrices) (BLAS 3)

Purpose
This routine performs one of the matrix-matrix operations
C <- alpha*op(A)*op(B) + beta*C
double beta(double a, double b)
Beta function B(a, b)
Definition beta.cpp:79
where op(X) is one of
op(X) = X, op(X) = X^T or op(X) = X^H
where alpha and beta are scalars and A, B and C are matrices, with op(A) an m x k matrix, op(B) a k x n matrix and C an m x n matrix.
Parameters
[in]transaSpecifies the form of op(A) to be used in the matrix multiplication as follows:
= 'N': op(A) = A.
= 'T': op(A) = A^T.
= 'C': op(A) = A^H.
[in]transbSpecifies the form of op(B) to be used in the matrix multiplication as follows:
= 'N': op(B) = B.
= 'T': op(B) = B^T.
= 'C': op(B) = B^H.
[in]mNumber of rows of the matrix op(A) and of the matrix C. (m >= 0) (If m = 0, returns without computation)
[in]nNumber of columns of the matrix op(B) and of the matrix C. (n >= 0) (If n = 0, returns without computation)
[in]kNumber of columns of the matrix op(A) and of rows of the matrix op(B). (k >= 0)
[in]alphaScalar alpha.
[in]ldaLeading dimension of the two dimensional array a[][]. (lda >= max(1, m) when transa = 'N', lda >= max(1, k) otherwise)
[in]a[][]Array a[la][lda] (la >= k when transa = 'N', la >= m otherwise)
m x k matrix A when transa = 'N', or k x m matrix A otherwise.
[in]ldbLeading dimension of two dimensional array b[][]. (ldb >= max(1, k) when transb = 'N', ldb >= max(1, n) otherwise)
[in]b[][]Array b[lb][ldb] (lb >= n when transb = 'N', lb >= k otherwise)
k x n matrix B when transb = 'N', or n x k matrix B otherwise.
[in]betaScalar beta. When beta is supplied as zero then C need not be set on input.
[in]ldcLeading dimension of the two dimensional array c[][]. (ldc >= max(1, m))
[in,out]c[][]Array c[lc][ldc] (lc>= n)
[in] m x n matrix C.
[out] m x n output matrix. (= alpha*op(A)*op(B) + beta*C)
Reference
BLAS