183 SUBROUTINE zunmrz( 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 COMPLEX*16 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,
'C' ) )
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.max( 1, nw ) .AND. .NOT.lquery )
THEN
266 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
269 nb = min( nbmax, ilaenv( 1,
'ZUNMRQ', side // trans, m,
272 lwkopt = nw*nb + tsize
278 CALL xerbla(
'ZUNMRZ', -info )
280 ELSE IF( lquery )
THEN
286 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
293 nb = min( nbmax, ilaenv( 1,
'ZUNMRQ', side // trans, m, n, k,
297 IF( nb.GT.1 .AND. nb.LT.k )
THEN
298 IF( lwork.LT.lwkopt )
THEN
299 nb = (lwork-tsize) / ldwork
300 nbmin = max( 2, ilaenv( 2,
'ZUNMRQ', side // trans, m, n,
306 IF( nb.LT.nbmin .OR. nb.GE.k )
THEN
310 CALL zunmr3( side, trans, m, n, k, l, a, lda, tau, c, ldc,
317 IF( ( left .AND. .NOT.notran ) .OR.
318 $ ( .NOT.left .AND. notran ) )
THEN
323 i1 = ( ( k-1 ) / nb )*nb + 1
345 ib = min( nb, k-i+1 )
350 CALL zlarzt(
'Backward',
'Rowwise', l, ib, a( i, ja ),
352 $ tau( i ), work( iwt ), ldt )
370 CALL zlarzb( side, transt,
'Backward',
'Rowwise', mi, ni,
371 $ ib, l, a( i, ja ), lda, work( iwt ), ldt,
372 $ c( ic, jc ), ldc, work, ldwork )
subroutine zlarzb(side, trans, direct, storev, m, n, k, l, v, ldv, t, ldt, c, ldc, work, ldwork)
ZLARZB applies a block reflector or its conjugate-transpose to a general matrix.
subroutine zlarzt(direct, storev, n, k, v, ldv, tau, t, ldt)
ZLARZT forms the triangular factor T of a block reflector H = I - vtvH.
subroutine zunmr3(side, trans, m, n, k, l, a, lda, tau, c, ldc, work, info)
ZUNMR3 multiplies a general matrix by the unitary matrix from a RZ factorization determined by ctzrzf...
subroutine zunmrz(side, trans, m, n, k, l, a, lda, tau, c, ldc, work, lwork, info)
ZUNMRZ