114 SUBROUTINE cungl2( M, N, K, A, LDA, TAU, WORK, INFO )
122 INTEGER info, k, lda, m, n
125 COMPLEX a( lda, * ), tau( * ), work( * )
132 parameter( one = ( 1.0e+0, 0.0e+0 ),
133 $ zero = ( 0.0e+0, 0.0e+0 ) )
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(
'CUNGL2', -info )
176 IF( j.GT.k .AND. j.LE.m )
186 CALL
clacgv( n-i, a( i, i+1 ), lda )
189 CALL
clarf(
'Right', m-i, n-i+1, a( i, i ), lda,
190 $ conjg( tau( i ) ), a( i+1, i ), lda, work )
192 CALL
cscal( n-i, -tau( i ), a( i, i+1 ), lda )
193 CALL
clacgv( n-i, a( i, i+1 ), lda )
195 a( i, i ) = one - conjg( tau( i ) )