133 SUBROUTINE sgeqr2p( M, N, A, LDA, TAU, WORK, INFO )
140 INTEGER INFO, LDA, M, N
143 REAL A( LDA, * ), TAU( * ), WORK( * )
150 parameter( one = 1.0e+0 )
169 ELSE IF( n.LT.0 )
THEN
171 ELSE IF( lda.LT.
max( 1, m ) )
THEN
175 CALL xerbla(
'SGEQR2P', -info )
185 CALL slarfgp( m-i+1, a( i, i ), a(
min( i+1, m ), i ), 1,
193 CALL slarf( 'left
', M-I+1, N-I, A( I, I ), 1, TAU( I ),
194 $ A( I, I+1 ), LDA, WORK )
subroutine xerbla(srname, info)
XERBLA
subroutine sgeqr2p(m, n, a, lda, tau, work, info)
SGEQR2P computes the QR factorization of a general rectangular matrix with non-negative diagonal elem...
subroutine slarf(side, m, n, v, incv, tau, c, ldc, work)
SLARF applies an elementary reflector to a general rectangular matrix.
subroutine slarfgp(n, alpha, x, incx, tau)
SLARFGP generates an elementary reflector (Householder matrix) with non-negative beta.