183 SUBROUTINE dormrz( SIDE, TRANS, M, N, K, L, A, LDA, TAU, C,
185 $ WORK, LWORK, INFO )
192 CHARACTER SIDE, TRANS
193 INTEGER INFO, K, L, LDA, LDC, LWORK, M, N
196 DOUBLE PRECISION A( LDA, * ), C( LDC, * ), TAU( * ), WORK( * )
202 INTEGER NBMAX, LDT, TSIZE
203 PARAMETER ( NBMAX = 64, ldt = nbmax+1,
204 $ tsize = ldt*nbmax )
207 LOGICAL LEFT, LQUERY, NOTRAN
209 INTEGER I, I1, I2, I3, IB, IC, IINFO, IWT, JA, JC,
210 $ ldwork, lwkopt, mi, nb, nbmin, ni, nq, nw
215 EXTERNAL lsame, ilaenv
228 left = lsame( side,
'L' )
229 notran = lsame( trans,
'N' )
230 lquery = ( lwork.EQ.-1 )
241 IF( .NOT.left .AND. .NOT.lsame( side,
'R' ) )
THEN
243 ELSE IF( .NOT.notran .AND. .NOT.lsame( trans,
'T' ) )
THEN
245 ELSE IF( m.LT.0 )
THEN
247 ELSE IF( n.LT.0 )
THEN
249 ELSE IF( k.LT.0 .OR. k.GT.nq )
THEN
251 ELSE IF( l.LT.0 .OR. ( left .AND. ( l.GT.m ) ) .OR.
252 $ ( .NOT.left .AND. ( l.GT.n ) ) )
THEN
254 ELSE IF( lda.LT.max( 1, k ) )
THEN
256 ELSE IF( ldc.LT.max( 1, m ) )
THEN
258 ELSE IF( lwork.LT.nw .AND. .NOT.lquery )
THEN
266 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
269 nb = min( nbmax, ilaenv( 1,
'DORMRQ', side // trans, m,
272 lwkopt = nw*nb + tsize
278 CALL xerbla(
'DORMRZ', -info )
280 ELSE IF( lquery )
THEN
286 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
293 IF( nb.GT.1 .AND. nb.LT.k )
THEN
294 IF( lwork.LT.lwkopt )
THEN
295 nb = (lwork-tsize) / ldwork
296 nbmin = max( 2, ilaenv( 2,
'DORMRQ', side // trans, m, n,
302 IF( nb.LT.nbmin .OR. nb.GE.k )
THEN
306 CALL dormr3( side, trans, m, n, k, l, a, lda, tau, c, ldc,
313 IF( ( left .AND. .NOT.notran ) .OR.
314 $ ( .NOT.left .AND. notran ) )
THEN
319 i1 = ( ( k-1 ) / nb )*nb + 1
341 ib = min( nb, k-i+1 )
346 CALL dlarzt(
'Backward',
'Rowwise', l, ib, a( i, ja ),
348 $ tau( i ), work( iwt ), ldt )
366 CALL dlarzb( side, transt,
'Backward',
'Rowwise', mi, ni,
367 $ ib, l, a( i, ja ), lda, work( iwt ), ldt,
368 $ c( ic, jc ), ldc, work, ldwork )
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 dormr3(side, trans, m, n, k, l, a, lda, tau, c, ldc, work, info)
DORMR3 multiplies a general matrix by the orthogonal matrix from a RZ factorization determined by stz...
subroutine dormrz(side, trans, m, n, k, l, a, lda, tau, c, ldc, work, lwork, info)
DORMRZ