ssyr2.f.html
来自「famous linear algebra library (LAPACK) p」· HTML 代码 · 共 255 行 · 第 1/2 页
HTML
255 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ssyr2.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="SSYR2.1"></a><a href="ssyr2.f.html#SSYR2.1">SSYR2</a>(UPLO,N,ALPHA,X,INCX,Y,INCY,A,LDA)
<span class="comment">*</span><span class="comment"> .. Scalar Arguments ..
</span> REAL ALPHA
INTEGER INCX,INCY,LDA,N
CHARACTER UPLO
<span class="comment">*</span><span class="comment"> ..
</span><span class="comment">*</span><span class="comment"> .. Array Arguments ..
</span> REAL A(LDA,*),X(*),Y(*)
<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="SSYR2.14"></a><a href="ssyr2.f.html#SSYR2.1">SSYR2</a> performs the symmetric rank 2 operation
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> A := alpha*x*y' + alpha*y*x' + A,
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> where alpha is a scalar, x and y are n element vectors and A is an n
</span><span class="comment">*</span><span class="comment"> by n symmetric matrix.
</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"> 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 array A is to be referenced as
</span><span class="comment">*</span><span class="comment"> 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 A
</span><span class="comment">*</span><span class="comment"> 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 A
</span><span class="comment">*</span><span class="comment"> 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"> N - INTEGER.
</span><span class="comment">*</span><span class="comment"> On entry, N specifies the order of the matrix A.
</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 - REAL .
</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"> X - REAL array of dimension at least
</span><span class="comment">*</span><span class="comment"> ( 1 + ( n - 1 )*abs( INCX ) ).
</span><span class="comment">*</span><span class="comment"> Before entry, the incremented array X must contain the n
</span><span class="comment">*</span><span class="comment"> element vector x.
</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"> INCX - INTEGER.
</span><span class="comment">*</span><span class="comment"> On entry, INCX specifies the increment for the elements of
</span><span class="comment">*</span><span class="comment"> X. INCX must not 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"> Y - REAL array of dimension at least
</span><span class="comment">*</span><span class="comment"> ( 1 + ( n - 1 )*abs( INCY ) ).
</span><span class="comment">*</span><span class="comment"> Before entry, the incremented array Y must contain the n
</span><span class="comment">*</span><span class="comment"> element vector y.
</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"> INCY - INTEGER.
</span><span class="comment">*</span><span class="comment"> On entry, INCY specifies the increment for the elements of
</span><span class="comment">*</span><span class="comment"> Y. INCY must not 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"> A - REAL array of DIMENSION ( LDA, n ).
</span><span class="comment">*</span><span class="comment"> Before entry with UPLO = 'U' or 'u', the leading n by n
</span><span class="comment">*</span><span class="comment"> upper triangular part of the array A must contain the upper
</span><span class="comment">*</span><span class="comment"> triangular part of the symmetric matrix and the strictly
</span><span class="comment">*</span><span class="comment"> lower triangular part of A is not referenced. On exit, the
</span><span class="comment">*</span><span class="comment"> upper triangular part of the array A is overwritten by the
</span><span class="comment">*</span><span class="comment"> upper triangular part of the updated matrix.
</span><span class="comment">*</span><span class="comment"> Before entry with UPLO = 'L' or 'l', the leading n by n
</span><span class="comment">*</span><span class="comment"> lower triangular part of the array A must contain the lower
</span><span class="comment">*</span><span class="comment"> triangular part of the symmetric matrix and the strictly
</span><span class="comment">*</span><span class="comment"> upper triangular part of A is not referenced. On exit, the
</span><span class="comment">*</span><span class="comment"> lower triangular part of the array A is overwritten by the
</span><span class="comment">*</span><span class="comment"> lower triangular part of the updated matrix.
</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. LDA must be at least
</span><span class="comment">*</span><span class="comment"> 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">
</span><span class="comment">*</span><span class="comment"> Level 2 Blas routine.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> -- Written on 22-October-1986.
</span><span class="comment">*</span><span class="comment"> Jack Dongarra, Argonne National Lab.
</span><span class="comment">*</span><span class="comment"> Jeremy Du Croz, Nag Central Office.
</span><span class="comment">*</span><span class="comment"> Sven Hammarling, Nag Central Office.
</span><span class="comment">*</span><span class="comment"> Richard Hanson, Sandia National Labs.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> .. Parameters ..
</span> REAL ZERO
PARAMETER (ZERO=0.0E+0)
<span class="comment">*</span><span class="comment"> ..
</span><span class="comment">*</span><span class="comment"> .. Local Scalars ..
</span> REAL TEMP1,TEMP2
INTEGER I,INFO,IX,IY,J,JX,JY,KX,KY
<span class="comment">*</span><span class="comment"> ..
</span><span class="comment">*</span><span class="comment"> .. External Functions ..
</span> LOGICAL <a name="LSAME.107"></a><a href="lsame.f.html#LSAME.1">LSAME</a>
EXTERNAL <a name="LSAME.108"></a><a href="lsame.f.html#LSAME.1">LSAME</a>
<span class="comment">*</span><span class="comment"> ..
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?