115 SUBROUTINE zungr2( M, N, K, A, LDA, TAU, WORK, INFO )
123 INTEGER info, k, lda, m, n
126 COMPLEX*16 a( lda, * ), tau( * ), work( * )
133 parameter( one = ( 1.0d+0, 0.0d+0 ),
134 $ zero = ( 0.0d+0, 0.0d+0 ) )
143 INTRINSIC dconjg, max
152 ELSE IF( n.LT.m )
THEN
154 ELSE IF( k.LT.0 .OR. k.GT.m )
THEN
156 ELSE IF( lda.LT.max( 1, m ) )
THEN
160 CALL
xerbla(
'ZUNGR2', -info )
177 IF( j.GT.n-m .AND. j.LE.n-k )
178 $ a( m-n+j, j ) = one
187 CALL
zlacgv( n-m+ii-1, a( ii, 1 ), lda )
188 a( ii, n-m+ii ) = one
189 CALL
zlarf(
'Right', ii-1, n-m+ii, a( ii, 1 ), lda,
190 $ dconjg( tau( i ) ), a, lda, work )
191 CALL
zscal( n-m+ii-1, -tau( i ), a( ii, 1 ), lda )
192 CALL
zlacgv( n-m+ii-1, a( ii, 1 ), lda )
193 a( ii, n-m+ii ) = one - dconjg( tau( i ) )
197 DO 30 l = n - m + ii + 1, n