131 SUBROUTINE zgeqr2p( M, N, A, LDA, TAU, WORK, INFO )
138 INTEGER INFO, LDA, M, N
141 COMPLEX*16 A( LDA, * ), TAU( * ), WORK( * )
148 parameter( one = ( 1.0d+0, 0.0d+0 ) )
157 INTRINSIC dconjg, max, min
166 ELSE IF( n.LT.0 )
THEN
168 ELSE IF( lda.LT.max( 1, m ) )
THEN
172 CALL xerbla(
'ZGEQR2P', -info )
182 CALL zlarfgp( m-i+1, a( i, i ), a( min( i+1, m ), i ), 1,
188 CALL zlarf1f(
'Left', m-i+1, n-i, a( i, i ), 1,
189 $ conjg( tau( i ) ), a( i, i+1 ), lda, work )
subroutine zgeqr2p(m, n, a, lda, tau, work, info)
ZGEQR2P computes the QR factorization of a general rectangular matrix with non-negative diagonal elem...
subroutine zlarf1f(side, m, n, v, incv, tau, c, ldc, work)
ZLARF1F applies an elementary reflector to a general rectangular
subroutine zlarfgp(n, alpha, x, incx, tau)
ZLARFGP generates an elementary reflector (Householder matrix) with non-negative beta.