125 SUBROUTINE cgeqr2p( M, N, A, LDA, TAU, WORK, INFO )
133 INTEGER INFO, LDA, M, N
136 COMPLEX A( lda, * ), TAU( * ), WORK( * )
143 parameter ( one = ( 1.0e+0, 0.0e+0 ) )
153 INTRINSIC conjg, max, min
162 ELSE IF( n.LT.0 )
THEN
164 ELSE IF( lda.LT.max( 1, m ) )
THEN
168 CALL xerbla(
'CGEQR2P', -info )
178 CALL clarfgp( m-i+1, a( i, i ), a( min( i+1, m ), i ), 1,
186 CALL clarf(
'Left', m-i+1, n-i, a( i, i ), 1,
187 $ conjg( tau( i ) ), a( i, i+1 ), lda, work )
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine clarfgp(N, ALPHA, X, INCX, TAU)
CLARFGP generates an elementary reflector (Householder matrix) with non-negative beta.
subroutine clarf(SIDE, M, N, V, INCV, TAU, C, LDC, WORK)
CLARF applies an elementary reflector to a general rectangular matrix.
subroutine cgeqr2p(M, N, A, LDA, TAU, WORK, INFO)
CGEQR2P computes the QR factorization of a general rectangular matrix with non-negative diagonal elem...