|
|
◆ 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] | transa | Specifies 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] | transb | Specifies 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] | m | Number of rows of the matrix op(A) and of the matrix C. (m >= 0) (If m = 0, returns without computation) |
| [in] | n | Number of columns of the matrix op(B) and of the matrix C. (n >= 0) (If n = 0, returns without computation) |
| [in] | k | Number of columns of the matrix op(A) and of rows of the matrix op(B). (k >= 0) |
| [in] | alpha | Scalar alpha. |
| [in] | lda | Leading 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] | ldb | Leading 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] | beta | Scalar beta. When beta is supplied as zero then C need not be set on input. |
| [in] | ldc | Leading 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
|