127 SUBROUTINE cgeqr2( M, N, A, LDA, TAU, WORK, INFO )
134 INTEGER INFO, LDA, M, N
137 COMPLEX A( LDA, * ), TAU( * ), WORK( * )
149 INTRINSIC conjg, max, min
158 ELSE IF( n.LT.0 )
THEN
160 ELSE IF( lda.LT.max( 1, m ) )
THEN
164 CALL xerbla(
'CGEQR2', -info )
174 CALL clarfg( m-i+1, a( i, i ), a( min( i+1, m ), i ), 1,
180 CALL clarf1f(
'Left', m-i+1, n-i, a( i, i ), 1,
181 $ conjg( tau( i ) ), a( i, i+1 ), lda, work )
subroutine clarf1f(side, m, n, v, incv, tau, c, ldc, work)
CLARF1F applies an elementary reflector to a general rectangular
subroutine cgeqr2(m, n, a, lda, tau, work, info)
CGEQR2 computes the QR factorization of a general rectangular matrix using an unblocked algorithm.
subroutine clarfg(n, alpha, x, incx, tau)
CLARFG generates an elementary reflector (Householder matrix).