Computes a scalar-matrix-matrix product (either one of the matrices is Hermitian) and adds the result to scalar-matrix product.
FORTRAN 77:
call chemm(side, uplo, m, n, alpha, a, lda, b, ldb, beta, c, ldc)
call zhemm(side, uplo, m, n, alpha, a, lda, b, ldb, beta, c, ldc)
Fortran 95:
call hemm(a, b, c [,side][,uplo] [,alpha][,beta])
The FORTRAN 77 interfaces are specified in the mkl_blas.fi include file, the Fortran 95 interfaces are specified in the blas.f90 include file, and the C interfaces are specified in the mkl_blas.h include file.
The ?hemm routines perform a matrix-matrix operation using Hermitian matrices. The operation is defined as
C := alpha*A*B + beta*C
or C := alpha*B*A + beta*C,
where:
alpha and beta are scalars,
A is an Hermitian matrix,
B and C are m-by-n matrices.
CHARACTER*1. Specifies whether the Hermitian matrix A appears on the left or right in the operation as follows:
if side = 'L' or 'l', then C := alpha*A*B + beta*C;
if side = 'R' or 'r', then C := alpha*B*A + beta*C.
CHARACTER*1. Specifies whether the upper or lower triangular part of the Hermitian matrix A is used:
If uplo = 'U' or 'u', then the upper triangular part of the Hermitian matrix A is used.
If uplo = 'L' or 'l', then the low triangular part of the Hermitian matrix A is used.
INTEGER. Specifies the number of rows of the matrix C.
The value of m must be at least zero.
INTEGER. Specifies the number of columns of the matrix C.
The value of n must be at least zero.
COMPLEX for chemm
DOUBLE COMPLEX for zhemm
Specifies the scalar alpha.
COMPLEX for chemm
DOUBLE COMPLEX for zhemm
Array, DIMENSION (lda,ka), where ka is m when side = 'L' or 'l' and is n otherwise. Before entry with side = 'L' or 'l', the m-by-m part of the array a must contain the Hermitian matrix, such that when uplo = 'U' or 'u', the leading m-by-m upper triangular part of the array a must contain the upper triangular part of the Hermitian matrix and the strictly lower triangular part of a is not referenced, and when uplo = 'L' or 'l', the leading m-by-m lower triangular part of the array a must contain the lower triangular part of the Hermitian matrix, and the strictly upper triangular part of a is not referenced.
Before entry with side = 'R' or 'r', the n-by-n part of the array a must contain the Hermitian matrix, such that when uplo = 'U' or 'u', the leading n-by-n upper triangular part of the array a must contain the upper triangular part of the Hermitian matrix and the strictly lower triangular part of a is not referenced, and when uplo = 'L' or 'l', the leading n-by-n lower triangular part of the array a must contain the lower triangular part of the Hermitian matrix, and the strictly upper triangular part of a is not referenced. The imaginary parts of the diagonal elements need not be set, they are assumed to be zero.
INTEGER. Specifies the leading dimension of a as declared in the calling (sub) program. When side = 'L' or 'l' then lda must be at least max(1, m), otherwise lda must be at least max(1,n).
COMPLEX for chemm
DOUBLE COMPLEX for zhemm
Array, DIMENSION (ldb,n).
Before entry, the leading m-by-n part of the array b must contain the matrix B.
INTEGER. Specifies the leading dimension of b as declared in the calling (sub)program. The value of ldb must be at least max(1, m).
COMPLEX for chemm
DOUBLE COMPLEX for zhemm
Specifies the scalar beta.
When beta is supplied as zero, then c need not be set on input.
COMPLEX for chemm
DOUBLE COMPLEX for zhemm
Array, DIMENSION (c, n). Before entry, the leading m-by-n part of the array c must contain the matrix C, except when beta is zero, in which case c need not be set on entry.
INTEGER. Specifies the leading dimension of c as declared in the calling (sub)program. The value of ldc must be at least max(1, m).
Routines in Fortran 95 interface have fewer arguments in the calling sequence than their FORTRAN 77 counterparts. For general conventions applied to skip redundant or reconstructible arguments, see Fortran 95 Interface Conventions.
Specific details for the routine hemm interface are the following:
Holds the matrix A of size (k,k) where
k = m if side = 'L',
k = n otherwise.
Holds the matrix B of size (m,n).
Holds the matrix C of size (m,n).
Must be 'L' or 'R'. The default value is 'L'.
Must be 'U' or 'L'. The default value is 'U'.
The default value is 1.
The default value is 0.
Copyright © 1994 - 2011, Intel Corporation. All rights reserved.