148 SUBROUTINE stzrzf( M, N, A, LDA, TAU, WORK, LWORK, INFO )
155 INTEGER INFO, LDA, LWORK, M, N
158 REAL A( LDA, * ), TAU( * ), WORK( * )
165 parameter( zero = 0.0e+0 )
169 INTEGER I, IB, IWS, KI, KK, LDWORK, LWKMIN, LWKOPT,
170 $ M1, MU, NB, NBMIN, NX
181 EXTERNAL ilaenv, sroundup_lwork
188 lquery = ( lwork.EQ.-1 )
191 ELSE IF( n.LT.m )
THEN
193 ELSE IF( lda.LT.max( 1, m ) )
THEN
198 IF( m.EQ.0 .OR. m.EQ.n )
THEN
205 nb = ilaenv( 1,
'SGERQF',
' ', m, n, -1, -1 )
209 work( 1 ) = sroundup_lwork(lwkopt)
211 IF( lwork.LT.lwkmin .AND. .NOT.lquery )
THEN
217 CALL xerbla(
'STZRZF', -info )
219 ELSE IF( lquery )
THEN
227 ELSE IF( m.EQ.n )
THEN
237 IF( nb.GT.1 .AND. nb.LT.m )
THEN
241 nx = max( 0, ilaenv( 3,
'SGERQF',
' ', m, n, -1, -1 ) )
248 IF( lwork.LT.iws )
THEN
254 nbmin = max( 2, ilaenv( 2,
'SGERQF',
' ', m, n, -1,
260 IF( nb.GE.nbmin .AND. nb.LT.m .AND. nx.LT.m )
THEN
266 ki = ( ( m-nx-1 ) / nb )*nb
269 DO 20 i = m - kk + ki + 1, m - kk + 1, -nb
270 ib = min( m-i+1, nb )
275 CALL slatrz( ib, n-i+1, n-m, a( i, i ), lda, tau( i ),
282 CALL slarzt(
'Backward',
'Rowwise', n-m, ib, a( i,
284 $ lda, tau( i ), work, ldwork )
288 CALL slarzb(
'Right',
'No transpose',
'Backward',
289 $
'Rowwise', i-1, n-i+1, ib, n-m, a( i, m1 ),
290 $ lda, work, ldwork, a( 1, i ), lda,
291 $ work( ib+1 ), ldwork )
302 $
CALL slatrz( mu, n, n-m, a, lda, tau, work )
304 work( 1 ) = sroundup_lwork(lwkopt)
subroutine slarzb(side, trans, direct, storev, m, n, k, l, v, ldv, t, ldt, c, ldc, work, ldwork)
SLARZB applies a block reflector or its transpose to a general matrix.
subroutine slarzt(direct, storev, n, k, v, ldv, tau, t, ldt)
SLARZT forms the triangular factor T of a block reflector H = I - vtvH.
subroutine slatrz(m, n, l, a, lda, tau, work)
SLATRZ factors an upper trapezoidal matrix by means of orthogonal transformations.
subroutine stzrzf(m, n, a, lda, tau, work, lwork, info)
STZRZF