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

◆ zhemm()

void zhemm ( char  side,
char  uplo,
int  m,
int  n,
doublecomplex  alpha,
int  lda,
doublecomplex  a[],
int  ldb,
doublecomplex  b[],
doublecomplex  beta,
int  ldc,
doublecomplex  c[] 
)

C <- αAB + βC or C <- αBA + βC (Hermitian matrix) (BLAS 3)

Purpose
This routine performs one of the matrix-matrix operations
C <- alpha*A*B + beta*C or C <- alpha*B*A + beta*C
double beta(double a, double b)
Beta function B(a, b)
Definition beta.cpp:79
where alpha and beta are scalars, A is a Hermitian matrix, B and C are m x n matrices.
Parameters
[in]sideSpecifies whether the Hermitian matrix A appears on the left or right in the operation as follows:
= 'L': C <- alpha*A*B + beta*C.
= 'R': C <- alpha*B*A + beta*C.
[in]uploSpecifies whether the upper or lower triangular part of the Hermitian matrix A is to be referenced as follows:
= 'U': Only the upper triangular part of the Hermitian matrix is to be referenced.
= 'L': Only the lower triangular part of the Hermitian matrix is to be referenced.
[in]mNumber of rows of the matrix C. (m >= 0) (If m = 0, returns without computation)
[in]nNumber of columns of the matrix C. (n >= 0) (If n = 0, returns without computation)
[in]alphaScalar alpha.
[in]ldaLeading dimension of the two dimensional array a[][]. (lda >= max(1, m) when side = 'L', lda >= max(1, n) otherwise)
[in]a[][]Array a[la][lda] (la >= m when side = 'L', la >= n otherwise)
m x m Hermitian matrix A when side = 'L', or n x n Hermitian matrix A when side = 'R'. Only the upper or lower triangular part is to be referenced in accordance with uplo.
[in]ldbLeading dimension of the two dimensional array b[][]. (ldb >= max(1, m))
[in]b[][]Array b[lb][ldb] (lb >= n)
m x n matrix B.
[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*A*B + beta*C or alpha*B*A + beta*C)
Reference
BLAS