110 SUBROUTINE cungl2( M, N, K, A, LDA, TAU, WORK, INFO )
117 INTEGER INFO, K, LDA, M, N
120 COMPLEX A( LDA, * ), TAU( * ), WORK( * )
127 parameter( one = ( 1.0e+0, 0.0e+0 ),
128 $ zero = ( 0.0e+0, 0.0e+0 ) )
146 ELSE IF( n.LT.m )
THEN
148 ELSE IF( k.LT.0 .OR. k.GT.m )
THEN
150 ELSE IF( lda.LT.max( 1, m ) )
THEN
154 CALL xerbla(
'CUNGL2', -info )
171 IF( j.GT.k .AND. j.LE.m )
181 CALL clacgv( n-i, a( i, i+1 ), lda )
183 CALL clarf1f(
'Right', m-i, n-i+1, a( i, i ), lda,
184 $ conjg( tau( i ) ), a( i+1, i ), lda,
187 CALL cscal( n-i, -tau( i ), a( i, i+1 ), lda )
188 CALL clacgv( n-i, a( i, i+1 ), lda )
190 a( i, i ) = one - conjg( tau( i ) )
subroutine clarf1f(side, m, n, v, incv, tau, c, ldc, work)
CLARF1F applies an elementary reflector to a general rectangular
subroutine cungl2(m, n, k, a, lda, tau, work, info)
CUNGL2 generates all or part of the unitary matrix Q from an LQ factorization determined by cgelqf (u...