zungbr.f.html
来自「famous linear algebra library (LAPACK) p」· HTML 代码 · 共 270 行 · 第 1/2 页
HTML
270 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>zungbr.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="ZUNGBR.1"></a><a href="zungbr.f.html#ZUNGBR.1">ZUNGBR</a>( VECT, M, N, K, A, LDA, TAU, WORK, LWORK, INFO )
<span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> -- LAPACK routine (version 3.1) --
</span><span class="comment">*</span><span class="comment"> Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd..
</span><span class="comment">*</span><span class="comment"> November 2006
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> .. Scalar Arguments ..
</span> CHARACTER VECT
INTEGER INFO, K, LDA, LWORK, M, N
<span class="comment">*</span><span class="comment"> ..
</span><span class="comment">*</span><span class="comment"> .. Array Arguments ..
</span> COMPLEX*16 A( LDA, * ), TAU( * ), WORK( * )
<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="ZUNGBR.18"></a><a href="zungbr.f.html#ZUNGBR.1">ZUNGBR</a> generates one of the complex unitary matrices Q or P**H
</span><span class="comment">*</span><span class="comment"> determined by <a name="ZGEBRD.19"></a><a href="zgebrd.f.html#ZGEBRD.1">ZGEBRD</a> when reducing a complex matrix A to bidiagonal
</span><span class="comment">*</span><span class="comment"> form: A = Q * B * P**H. Q and P**H are defined as products of
</span><span class="comment">*</span><span class="comment"> elementary reflectors H(i) or G(i) respectively.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> If VECT = 'Q', A is assumed to have been an M-by-K matrix, and Q
</span><span class="comment">*</span><span class="comment"> is of order M:
</span><span class="comment">*</span><span class="comment"> if m >= k, Q = H(1) H(2) . . . H(k) and <a name="ZUNGBR.25"></a><a href="zungbr.f.html#ZUNGBR.1">ZUNGBR</a> returns the first n
</span><span class="comment">*</span><span class="comment"> columns of Q, where m >= n >= k;
</span><span class="comment">*</span><span class="comment"> if m < k, Q = H(1) H(2) . . . H(m-1) and <a name="ZUNGBR.27"></a><a href="zungbr.f.html#ZUNGBR.1">ZUNGBR</a> returns Q as an
</span><span class="comment">*</span><span class="comment"> M-by-M matrix.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> If VECT = 'P', A is assumed to have been a K-by-N matrix, and P**H
</span><span class="comment">*</span><span class="comment"> is of order N:
</span><span class="comment">*</span><span class="comment"> if k < n, P**H = G(k) . . . G(2) G(1) and <a name="ZUNGBR.32"></a><a href="zungbr.f.html#ZUNGBR.1">ZUNGBR</a> returns the first m
</span><span class="comment">*</span><span class="comment"> rows of P**H, where n >= m >= k;
</span><span class="comment">*</span><span class="comment"> if k >= n, P**H = G(n-1) . . . G(2) G(1) and <a name="ZUNGBR.34"></a><a href="zungbr.f.html#ZUNGBR.1">ZUNGBR</a> returns P**H as
</span><span class="comment">*</span><span class="comment"> an N-by-N 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"> VECT (input) CHARACTER*1
</span><span class="comment">*</span><span class="comment"> Specifies whether the matrix Q or the matrix P**H is
</span><span class="comment">*</span><span class="comment"> required, as defined in the transformation applied by <a name="ZGEBRD.42"></a><a href="zgebrd.f.html#ZGEBRD.1">ZGEBRD</a>:
</span><span class="comment">*</span><span class="comment"> = 'Q': generate Q;
</span><span class="comment">*</span><span class="comment"> = 'P': generate P**H.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> M (input) INTEGER
</span><span class="comment">*</span><span class="comment"> The number of rows of the matrix Q or P**H to be returned.
</span><span class="comment">*</span><span class="comment"> M >= 0.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> N (input) INTEGER
</span><span class="comment">*</span><span class="comment"> The number of columns of the matrix Q or P**H to be returned.
</span><span class="comment">*</span><span class="comment"> N >= 0.
</span><span class="comment">*</span><span class="comment"> If VECT = 'Q', M >= N >= min(M,K);
</span><span class="comment">*</span><span class="comment"> if VECT = 'P', N >= M >= min(N,K).
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> K (input) INTEGER
</span><span class="comment">*</span><span class="comment"> If VECT = 'Q', the number of columns in the original M-by-K
</span><span class="comment">*</span><span class="comment"> matrix reduced by <a name="ZGEBRD.58"></a><a href="zgebrd.f.html#ZGEBRD.1">ZGEBRD</a>.
</span><span class="comment">*</span><span class="comment"> If VECT = 'P', the number of rows in the original K-by-N
</span><span class="comment">*</span><span class="comment"> matrix reduced by <a name="ZGEBRD.60"></a><a href="zgebrd.f.html#ZGEBRD.1">ZGEBRD</a>.
</span><span class="comment">*</span><span class="comment"> K >= 0.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> A (input/output) COMPLEX*16 array, dimension (LDA,N)
</span><span class="comment">*</span><span class="comment"> On entry, the vectors which define the elementary reflectors,
</span><span class="comment">*</span><span class="comment"> as returned by <a name="ZGEBRD.65"></a><a href="zgebrd.f.html#ZGEBRD.1">ZGEBRD</a>.
</span><span class="comment">*</span><span class="comment"> On exit, the M-by-N matrix Q or P**H.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> LDA (input) INTEGER
</span><span class="comment">*</span><span class="comment"> The leading dimension of the array A. LDA >= M.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> TAU (input) COMPLEX*16 array, dimension
</span><span class="comment">*</span><span class="comment"> (min(M,K)) if VECT = 'Q'
</span><span class="comment">*</span><span class="comment"> (min(N,K)) if VECT = 'P'
</span><span class="comment">*</span><span class="comment"> TAU(i) must contain the scalar factor of the elementary
</span><span class="comment">*</span><span class="comment"> reflector H(i) or G(i), which determines Q or P**H, as
</span><span class="comment">*</span><span class="comment"> returned by <a name="ZGEBRD.76"></a><a href="zgebrd.f.html#ZGEBRD.1">ZGEBRD</a> in its array argument TAUQ or TAUP.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> WORK (workspace/output) COMPLEX*16 array, dimension (MAX(1,LWORK))
</span><span class="comment">*</span><span class="comment"> On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> LWORK (input) INTEGER
</span><span class="comment">*</span><span class="comment"> The dimension of the array WORK. LWORK >= max(1,min(M,N)).
</span><span class="comment">*</span><span class="comment"> For optimum performance LWORK >= min(M,N)*NB, where NB
</span><span class="comment">*</span><span class="comment"> is the optimal blocksize.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> If LWORK = -1, then a workspace query is assumed; the routine
</span><span class="comment">*</span><span class="comment"> only calculates the optimal size of the WORK array, returns
</span><span class="comment">*</span><span class="comment"> this value as the first entry of the WORK array, and no error
</span><span class="comment">*</span><span class="comment"> message related to LWORK is issued by <a name="XERBLA.89"></a><a href="xerbla.f.html#XERBLA.1">XERBLA</a>.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment"> INFO (output) INTEGER
</span><span class="comment">*</span><span class="comment"> = 0: successful exit
</span><span class="comment">*</span><span class="comment"> < 0: if INFO = -i, the i-th argument had an illegal value
</span><span class="comment">*</span><span class="comment">
</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> COMPLEX*16 ZERO, ONE
PARAMETER ( ZERO = ( 0.0D+0, 0.0D+0 ),
$ ONE = ( 1.0D+0, 0.0D+0 ) )
<span class="comment">*</span><span class="comment"> ..
</span><span class="comment">*</span><span class="comment"> .. Local Scalars ..
</span> LOGICAL LQUERY, WANTQ
INTEGER I, IINFO, J, LWKOPT, MN, NB
<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>
INTEGER <a name="ILAENV.108"></a><a href="hfy-index.html#ILAENV">ILAENV</a>
EXTERNAL <a name="LSAME.109"></a><a href="lsame.f.html#LSAME.1">LSAME</a>, <a name="ILAENV.109"></a><a href="hfy-index.html#ILAENV">ILAENV</a>
<span class="comment">*</span><span class="comment"> ..
</span><span class="comment">*</span><span class="comment"> .. External Subroutines ..
</span> EXTERNAL <a name="XERBLA.112"></a><a href="xerbla.f.html#XERBLA.1">XERBLA</a>, <a name="ZUNGLQ.112"></a><a href="zunglq.f.html#ZUNGLQ.1">ZUNGLQ</a>, <a name="ZUNGQR.112"></a><a href="zungqr.f.html#ZUNGQR.1">ZUNGQR</a>
<span class="comment">*</span><span class="comment"> ..
</span><span class="comment">*</span><span class="comment"> .. Intrinsic Functions ..
</span> INTRINSIC MAX, MIN
<span class="comment">*</span><span class="comment"> ..
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?