cungbr.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>cungbr.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="CUNGBR.1"></a><a href="cungbr.f.html#CUNGBR.1">CUNGBR</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            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="CUNGBR.18"></a><a href="cungbr.f.html#CUNGBR.1">CUNGBR</a> generates one of the complex unitary matrices Q or P**H
</span><span class="comment">*</span><span class="comment">  determined by <a name="CGEBRD.19"></a><a href="cgebrd.f.html#CGEBRD.1">CGEBRD</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 &gt;= k, Q = H(1) H(2) . . . H(k) and <a name="CUNGBR.25"></a><a href="cungbr.f.html#CUNGBR.1">CUNGBR</a> returns the first n
</span><span class="comment">*</span><span class="comment">  columns of Q, where m &gt;= n &gt;= k;
</span><span class="comment">*</span><span class="comment">  if m &lt; k, Q = H(1) H(2) . . . H(m-1) and <a name="CUNGBR.27"></a><a href="cungbr.f.html#CUNGBR.1">CUNGBR</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 &lt; n, P**H = G(k) . . . G(2) G(1) and <a name="CUNGBR.32"></a><a href="cungbr.f.html#CUNGBR.1">CUNGBR</a> returns the first m
</span><span class="comment">*</span><span class="comment">  rows of P**H, where n &gt;= m &gt;= k;
</span><span class="comment">*</span><span class="comment">  if k &gt;= n, P**H = G(n-1) . . . G(2) G(1) and <a name="CUNGBR.34"></a><a href="cungbr.f.html#CUNGBR.1">CUNGBR</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="CGEBRD.42"></a><a href="cgebrd.f.html#CGEBRD.1">CGEBRD</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 &gt;= 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 &gt;= 0.
</span><span class="comment">*</span><span class="comment">          If VECT = 'Q', M &gt;= N &gt;= min(M,K);
</span><span class="comment">*</span><span class="comment">          if VECT = 'P', N &gt;= M &gt;= 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="CGEBRD.58"></a><a href="cgebrd.f.html#CGEBRD.1">CGEBRD</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="CGEBRD.60"></a><a href="cgebrd.f.html#CGEBRD.1">CGEBRD</a>.
</span><span class="comment">*</span><span class="comment">          K &gt;= 0.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment">  A       (input/output) COMPLEX 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="CGEBRD.65"></a><a href="cgebrd.f.html#CGEBRD.1">CGEBRD</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 &gt;= M.
</span><span class="comment">*</span><span class="comment">
</span><span class="comment">*</span><span class="comment">  TAU     (input) COMPLEX 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="CGEBRD.76"></a><a href="cgebrd.f.html#CGEBRD.1">CGEBRD</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 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 &gt;= max(1,min(M,N)).
</span><span class="comment">*</span><span class="comment">          For optimum performance LWORK &gt;= 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">          &lt; 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            ZERO, ONE
      PARAMETER          ( ZERO = ( 0.0E+0, 0.0E+0 ),
     $                   ONE = ( 1.0E+0, 0.0E+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="ILAENV.109"></a><a href="hfy-index.html#ILAENV">ILAENV</a>, <a name="LSAME.109"></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="CUNGLQ.112"></a><a href="cunglq.f.html#CUNGLQ.1">CUNGLQ</a>, <a name="CUNGQR.112"></a><a href="cungqr.f.html#CUNGQR.1">CUNGQR</a>, <a name="XERBLA.112"></a><a href="xerbla.f.html#XERBLA.1">XERBLA</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 + -
显示快捷键?