chemm.f.html
来自「famous linear algebra library (LAPACK) p」· HTML 代码 · 共 323 行 · 第 1/2 页
HTML
323 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>chemm.f</title>
<meta name="generator" content="emacs 21.3.1; htmlfontify 0.20">
<style type="text/css"><!--
body { background: rgb(255, 255, 255); color: rgb(0, 0, 0); font-style: normal; font-weight: 500; font-stretch: normal; font-family: adobe-courier; font-size: 11pt; text-decoration: none; }
span.default { background: rgb(255, 255, 255); color: rgb(0, 0, 0); font-style: normal; font-weight: 500; font-stretch: normal; font-family: adobe-courier; font-size: 11pt; text-decoration: none; }
span.default a { background: rgb(255, 255, 255); color: rgb(0, 0, 0); font-style: normal; font-weight: 500; font-stretch: normal; font-family: adobe-courier; font-size: 11pt; text-decoration: underline; }
span.string { color: rgb(188, 143, 143); background: rgb(255, 255, 255); font-style: normal; font-weight: 500; font-stretch: normal; font-family: adobe-courier; font-size: 11pt; text-decoration: none; }
span.string a { color: rgb(188, 143, 143); background: rgb(255, 255, 255); font-style: normal; font-weight: 500; font-stretch: normal; font-family: adobe-courier; font-size: 11pt; text-decoration: underline; }
span.comment { color: rgb(178, 34, 34); background: rgb(255, 255, 255); font-style: normal; font-weight: 500; font-stretch: normal; font-family: adobe-courier; font-size: 11pt; text-decoration: none; }
span.comment a { color: rgb(178, 34, 34); background: rgb(255, 255, 255); font-style: normal; font-weight: 500; font-stretch: normal; font-family: adobe-courier; font-size: 11pt; text-decoration: underline; }
--></style>
</head>
<body>
<pre>
SUBROUTINE <a name="CHEMM.1"></a><a href="chemm.f.html#CHEMM.1">CHEMM</a>(SIDE,UPLO,M,N,ALPHA,A,LDA,B,LDB,BETA,C,LDC)
<span class="comment">*</span><span class="comment"> .. Scalar Arguments ..
</span> COMPLEX ALPHA,BETA
INTEGER LDA,LDB,LDC,M,N
CHARACTER SIDE,UPLO
<span class="comment">*</span><span class="comment"> ..
</span><span class="comment">*</span><span class="comment"> .. Array Arguments ..
</span> COMPLEX A(LDA,*),B(LDB,*),C(LDC,*)
<span class="comment">*</span><span class="comment"> ..
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> Purpose
</span><span class="comment">*</span><span class="comment"> =======
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> <a name="CHEMM.14"></a><a href="chemm.f.html#CHEMM.1">CHEMM</a> performs one of the matrix-matrix operations
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> C := alpha*A*B + beta*C,
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> or
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> C := alpha*B*A + beta*C,
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> where alpha and beta are scalars, A is an hermitian matrix and B and
</span><span class="comment">*</span><span class="comment"> C are m by n matrices.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> Arguments
</span><span class="comment">*</span><span class="comment"> ==========
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> SIDE - CHARACTER*1.
</span><span class="comment">*</span><span class="comment"> On entry, SIDE specifies whether the hermitian matrix A
</span><span class="comment">*</span><span class="comment"> appears on the left or right in the operation as follows:
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> SIDE = 'L' or 'l' C := alpha*A*B + beta*C,
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> SIDE = 'R' or 'r' C := alpha*B*A + beta*C,
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> Unchanged on exit.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> UPLO - CHARACTER*1.
</span><span class="comment">*</span><span class="comment"> On entry, UPLO specifies whether the upper or lower
</span><span class="comment">*</span><span class="comment"> triangular part of the hermitian matrix A is to be
</span><span class="comment">*</span><span class="comment"> referenced as follows:
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> UPLO = 'U' or 'u' Only the upper triangular part of the
</span><span class="comment">*</span><span class="comment"> hermitian matrix is to be referenced.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> UPLO = 'L' or 'l' Only the lower triangular part of the
</span><span class="comment">*</span><span class="comment"> hermitian matrix is to be referenced.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> Unchanged on exit.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> M - INTEGER.
</span><span class="comment">*</span><span class="comment"> On entry, M specifies the number of rows of the matrix C.
</span><span class="comment">*</span><span class="comment"> M must be at least zero.
</span><span class="comment">*</span><span class="comment"> Unchanged on exit.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> N - INTEGER.
</span><span class="comment">*</span><span class="comment"> On entry, N specifies the number of columns of the matrix C.
</span><span class="comment">*</span><span class="comment"> N must be at least zero.
</span><span class="comment">*</span><span class="comment"> Unchanged on exit.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> ALPHA - COMPLEX .
</span><span class="comment">*</span><span class="comment"> On entry, ALPHA specifies the scalar alpha.
</span><span class="comment">*</span><span class="comment"> Unchanged on exit.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> A - COMPLEX array of DIMENSION ( LDA, ka ), where ka is
</span><span class="comment">*</span><span class="comment"> m when SIDE = 'L' or 'l' and is n otherwise.
</span><span class="comment">*</span><span class="comment"> Before entry with SIDE = 'L' or 'l', the m by m part of
</span><span class="comment">*</span><span class="comment"> the array A must contain the hermitian matrix, such that
</span><span class="comment">*</span><span class="comment"> when UPLO = 'U' or 'u', the leading m by m upper triangular
</span><span class="comment">*</span><span class="comment"> part of the array A must contain the upper triangular part
</span><span class="comment">*</span><span class="comment"> of the hermitian matrix and the strictly lower triangular
</span><span class="comment">*</span><span class="comment"> part of A is not referenced, and when UPLO = 'L' or 'l',
</span><span class="comment">*</span><span class="comment"> the leading m by m lower triangular part of the array A
</span><span class="comment">*</span><span class="comment"> must contain the lower triangular part of the hermitian
</span><span class="comment">*</span><span class="comment"> matrix and the strictly upper triangular part of A is not
</span><span class="comment">*</span><span class="comment"> referenced.
</span><span class="comment">*</span><span class="comment"> Before entry with SIDE = 'R' or 'r', the n by n part of
</span><span class="comment">*</span><span class="comment"> the array A must contain the hermitian matrix, such that
</span><span class="comment">*</span><span class="comment"> when UPLO = 'U' or 'u', the leading n by n upper triangular
</span><span class="comment">*</span><span class="comment"> part of the array A must contain the upper triangular part
</span><span class="comment">*</span><span class="comment"> of the hermitian matrix and the strictly lower triangular
</span><span class="comment">*</span><span class="comment"> part of A is not referenced, and when UPLO = 'L' or 'l',
</span><span class="comment">*</span><span class="comment"> the leading n by n lower triangular part of the array A
</span><span class="comment">*</span><span class="comment"> must contain the lower triangular part of the hermitian
</span><span class="comment">*</span><span class="comment"> matrix and the strictly upper triangular part of A is not
</span><span class="comment">*</span><span class="comment"> referenced.
</span><span class="comment">*</span><span class="comment"> Note that the imaginary parts of the diagonal elements need
</span><span class="comment">*</span><span class="comment"> not be set, they are assumed to be zero.
</span><span class="comment">*</span><span class="comment"> Unchanged on exit.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> LDA - INTEGER.
</span><span class="comment">*</span><span class="comment"> On entry, LDA specifies the first dimension of A as declared
</span><span class="comment">*</span><span class="comment"> in the calling (sub) program. When SIDE = 'L' or 'l' then
</span><span class="comment">*</span><span class="comment"> LDA must be at least max( 1, m ), otherwise LDA must be at
</span><span class="comment">*</span><span class="comment"> least max( 1, n ).
</span><span class="comment">*</span><span class="comment"> Unchanged on exit.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> B - COMPLEX array of DIMENSION ( LDB, n ).
</span><span class="comment">*</span><span class="comment"> Before entry, the leading m by n part of the array B must
</span><span class="comment">*</span><span class="comment"> contain the matrix B.
</span><span class="comment">*</span><span class="comment"> Unchanged on exit.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> LDB - INTEGER.
</span><span class="comment">*</span><span class="comment"> On entry, LDB specifies the first dimension of B as declared
</span><span class="comment">*</span><span class="comment"> in the calling (sub) program. LDB must be at least
</span><span class="comment">*</span><span class="comment"> max( 1, m ).
</span><span class="comment">*</span><span class="comment"> Unchanged on exit.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> BETA - COMPLEX .
</span><span class="comment">*</span><span class="comment"> On entry, BETA specifies the scalar beta. When BETA is
</span><span class="comment">*</span><span class="comment"> supplied as zero then C need not be set on input.
</span><span class="comment">*</span><span class="comment"> Unchanged on exit.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> C - COMPLEX array of DIMENSION ( LDC, n ).
</span><span class="comment">*</span><span class="comment"> Before entry, the leading m by n part of the array C must
</span><span class="comment">*</span><span class="comment"> contain the matrix C, except when beta is zero, in which
</span><span class="comment">*</span><span class="comment"> case C need not be set on entry.
</span><span class="comment">*</span><span class="comment"> On exit, the array C is overwritten by the m by n updated
</span><span class="comment">*</span><span class="comment"> matrix.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> LDC - INTEGER.
</span><span class="comment">*</span><span class="comment"> On entry, LDC specifies the first dimension of C as declared
</span><span class="comment">*</span><span class="comment"> in the calling (sub) program. LDC must be at least
</span><span class="comment">*</span><span class="comment"> max( 1, m ).
</span><span class="comment">*</span><span class="comment"> Unchanged on exit.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> Level 3 Blas routine.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> -- Written on 8-February-1989.
</span><span class="comment">*</span><span class="comment"> Jack Dongarra, Argonne National Laboratory.
</span><span class="comment">*</span><span class="comment"> Iain Duff, AERE Harwell.
</span><span class="comment">*</span><span class="comment"> Jeremy Du Croz, Numerical Algorithms Group Ltd.
</span><span class="comment">*</span><span class="comment"> Sven Hammarling, Numerical Algorithms Group Ltd.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> .. External Functions ..
</span> LOGICAL <a name="LSAME.138"></a><a href="lsame.f.html#LSAME.1">LSAME</a>
EXTERNAL <a name="LSAME.139"></a><a href="lsame.f.html#LSAME.1">LSAME</a>
<span class="comment">*</span><span class="comment"> ..
</span><span class="comment">*</span><span class="comment"> .. External Subroutines ..
</span> EXTERNAL <a name="XERBLA.142"></a><a href="xerbla.f.html#XERBLA.1">XERBLA</a>
<span class="comment">*</span><span class="comment"> ..
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?