112 SUBROUTINE cungl2( M, N, K, A, LDA, TAU, WORK, INFO )
119 INTEGER INFO, K, LDA, M, N
122 COMPLEX A( LDA, * ), TAU( * ), WORK( * )
129 parameter( one = ( 1.0e+0, 0.0e+0 ),
130 $ zero = ( 0.0e+0, 0.0e+0 ) )
148 ELSE IF( n.LT.m )
THEN
150 ELSE IF( k.LT.0 .OR. k.GT.m )
THEN
152 ELSE IF( lda.LT.max( 1, m ) )
THEN
156 CALL xerbla(
'CUNGL2', -info )
173 IF( j.GT.k .AND. j.LE.m )
183 CALL clacgv( n-i, a( i, i+1 ), lda )
186 CALL clarf(
'Right', m-i, n-i+1, a( i, i ), lda,
187 $ conjg( tau( i ) ), a( i+1, i ), lda, work )
189 CALL cscal( n-i, -tau( i ), a( i, i+1 ), lda )
190 CALL clacgv( n-i, a( i, i+1 ), lda )
192 a( i, i ) = one - conjg( tau( i ) )
subroutine xerbla(srname, info)
subroutine clacgv(n, x, incx)
CLACGV conjugates a complex vector.
subroutine clarf(side, m, n, v, incv, tau, c, ldc, work)
CLARF applies an elementary reflector to a general rectangular matrix.
subroutine cscal(n, ca, cx, incx)
CSCAL
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...