114 SUBROUTINE zungl2( M, N, K, A, LDA, TAU, WORK, INFO )
122 INTEGER info, k, lda, m, n
125 COMPLEX*16 a( lda, * ), tau( * ), work( * )
132 parameter( one = ( 1.0d+0, 0.0d+0 ),
133 $ zero = ( 0.0d+0, 0.0d+0 ) )
142 INTRINSIC dconjg, max
151 ELSE IF( n.LT.m )
THEN
153 ELSE IF( k.LT.0 .OR. k.GT.m )
THEN
155 ELSE IF( lda.LT.max( 1, m ) )
THEN
159 CALL
xerbla(
'ZUNGL2', -info )
176 IF( j.GT.k .AND. j.LE.m )
186 CALL
zlacgv( n-i, a( i, i+1 ), lda )
189 CALL
zlarf(
'Right', m-i, n-i+1, a( i, i ), lda,
190 $ dconjg( tau( i ) ), a( i+1, i ), lda, work )
192 CALL
zscal( n-i, -tau( i ), a( i, i+1 ), lda )
193 CALL
zlacgv( n-i, a( i, i+1 ), lda )
195 a( i, i ) = one - dconjg( tau( i ) )