113 SUBROUTINE zungr2( M, N, K, A, LDA, TAU, WORK, INFO )
120 INTEGER INFO, K, LDA, M, N
123 COMPLEX*16 A( LDA, * ), TAU( * ), WORK( * )
130 parameter( one = ( 1.0d+0, 0.0d+0 ),
131 $ zero = ( 0.0d+0, 0.0d+0 ) )
140 INTRINSIC dconjg, max
149 ELSE IF( n.LT.m )
THEN
151 ELSE IF( k.LT.0 .OR. k.GT.m )
THEN
153 ELSE IF( lda.LT.max( 1, m ) )
THEN
157 CALL xerbla(
'ZUNGR2', -info )
174 IF( j.GT.n-m .AND. j.LE.n-k )
175 $ a( m-n+j, j ) = one
184 CALL zlacgv( n-m+ii-1, a( ii, 1 ), lda )
185 a( ii, n-m+ii ) = one
186 CALL zlarf(
'Right', ii-1, n-m+ii, a( ii, 1 ), lda,
187 $ dconjg( tau( i ) ), a, lda, work )
188 CALL zscal( n-m+ii-1, -tau( i ), a( ii, 1 ), lda )
189 CALL zlacgv( n-m+ii-1, a( ii, 1 ), lda )
190 a( ii, n-m+ii ) = one - dconjg( tau( i ) )
194 DO 30 l = n - m + ii + 1, n
subroutine xerbla(srname, info)
subroutine zlacgv(n, x, incx)
ZLACGV conjugates a complex vector.
subroutine zlarf(side, m, n, v, incv, tau, c, ldc, work)
ZLARF applies an elementary reflector to a general rectangular matrix.
subroutine zscal(n, za, zx, incx)
ZSCAL
subroutine zungr2(m, n, k, a, lda, tau, work, info)
ZUNGR2 generates all or part of the unitary matrix Q from an RQ factorization determined by cgerqf (u...