148 SUBROUTINE dtzrzf( M, N, A, LDA, TAU, WORK, LWORK, INFO )
155 INTEGER INFO, LDA, LWORK, M, N
158 DOUBLE PRECISION A( LDA, * ), TAU( * ), WORK( * )
164 DOUBLE PRECISION ZERO
165 parameter( zero = 0.0d+0 )
169 INTEGER I, IB, IWS, KI, KK, LDWORK, LWKMIN, LWKOPT,
170 $ M1, MU, NB, NBMIN, NX
187 lquery = ( lwork.EQ.-1 )
190 ELSE IF( n.LT.m )
THEN
192 ELSE IF( lda.LT.max( 1, m ) )
THEN
197 IF( m.EQ.0 .OR. m.EQ.n )
THEN
204 nb = ilaenv( 1,
'DGERQF',
' ', m, n, -1, -1 )
210 IF( lwork.LT.lwkmin .AND. .NOT.lquery )
THEN
216 CALL xerbla(
'DTZRZF', -info )
218 ELSE IF( lquery )
THEN
226 ELSE IF( m.EQ.n )
THEN
236 IF( nb.GT.1 .AND. nb.LT.m )
THEN
240 nx = max( 0, ilaenv( 3,
'DGERQF',
' ', m, n, -1, -1 ) )
247 IF( lwork.LT.iws )
THEN
253 nbmin = max( 2, ilaenv( 2,
'DGERQF',
' ', m, n, -1,
259 IF( nb.GE.nbmin .AND. nb.LT.m .AND. nx.LT.m )
THEN
265 ki = ( ( m-nx-1 ) / nb )*nb
268 DO 20 i = m - kk + ki + 1, m - kk + 1, -nb
269 ib = min( m-i+1, nb )
274 CALL dlatrz( ib, n-i+1, n-m, a( i, i ), lda, tau( i ),
281 CALL dlarzt(
'Backward',
'Rowwise', n-m, ib, a( i,
283 $ lda, tau( i ), work, ldwork )
287 CALL dlarzb(
'Right',
'No transpose',
'Backward',
288 $
'Rowwise', i-1, n-i+1, ib, n-m, a( i, m1 ),
289 $ lda, work, ldwork, a( 1, i ), lda,
290 $ work( ib+1 ), ldwork )
301 $
CALL dlatrz( mu, n, n-m, a, lda, tau, work )
subroutine dlarzb(side, trans, direct, storev, m, n, k, l, v, ldv, t, ldt, c, ldc, work, ldwork)
DLARZB applies a block reflector or its transpose to a general matrix.
subroutine dlarzt(direct, storev, n, k, v, ldv, tau, t, ldt)
DLARZT forms the triangular factor T of a block reflector H = I - vtvH.
subroutine dlatrz(m, n, l, a, lda, tau, work)
DLATRZ factors an upper trapezoidal matrix by means of orthogonal transformations.
subroutine dtzrzf(m, n, a, lda, tau, work, lwork, info)
DTZRZF