216 SUBROUTINE ztpmqrt( SIDE, TRANS, M, N, K, L, NB, V, LDV, T, LDT,
217 $ a, lda, b, ldb, work, info )
225 CHARACTER side, trans
226 INTEGER info, k, ldv, lda, ldb, m, n, l, nb, ldt
229 COMPLEX*16 v( ldv, * ), a( lda, * ), b( ldb, * ), t( ldt, * ),
237 LOGICAL left, right, tran, notran
238 INTEGER i, ib, mb, lb, kf, q
255 left =
lsame( side,
'L' )
256 right =
lsame( side,
'R' )
257 tran =
lsame( trans,
'C' )
258 notran =
lsame( trans,
'N' )
262 ELSE IF ( right )
THEN
265 IF( .NOT.left .AND. .NOT.right )
THEN
267 ELSE IF( .NOT.tran .AND. .NOT.notran )
THEN
269 ELSE IF( m.LT.0 )
THEN
271 ELSE IF( n.LT.0 )
THEN
273 ELSE IF( k.LT.0 )
THEN
275 ELSE IF( l.LT.0 .OR. l.GT.k )
THEN
277 ELSE IF( nb.LT.1 .OR. nb.GT.k )
THEN
279 ELSE IF( ldv.LT.max( 1, q ) )
THEN
281 ELSE IF( ldt.LT.nb )
THEN
283 ELSE IF( lda.LT.max( 1, m ) )
THEN
285 ELSE IF( ldb.LT.max( 1, m ) )
THEN
290 CALL
xerbla(
'ZTPMQRT', -info )
296 IF( m.EQ.0 .OR. n.EQ.0 .OR. k.EQ.0 ) return
298 IF( left .AND. tran )
THEN
301 ib = min( nb, k-i+1 )
302 mb = min( m-l+i+ib-1, m )
308 CALL
ztprfb(
'L',
'C',
'F',
'C', mb, n, ib, lb,
309 $ v( 1, i ), ldv, t( 1, i ), ldt,
310 $ a( i, 1 ), lda, b, ldb, work, ib )
313 ELSE IF( right .AND. notran )
THEN
316 ib = min( nb, k-i+1 )
317 mb = min( n-l+i+ib-1, n )
323 CALL
ztprfb(
'R',
'N',
'F',
'C', m, mb, ib, lb,
324 $ v( 1, i ), ldv, t( 1, i ), ldt,
325 $ a( 1, i ), lda, b, ldb, work, m )
328 ELSE IF( left .AND. notran )
THEN
332 ib = min( nb, k-i+1 )
333 mb = min( m-l+i+ib-1, m )
339 CALL
ztprfb(
'L',
'N',
'F',
'C', mb, n, ib, lb,
340 $ v( 1, i ), ldv, t( 1, i ), ldt,
341 $ a( i, 1 ), lda, b, ldb, work, ib )
344 ELSE IF( right .AND. tran )
THEN
348 ib = min( nb, k-i+1 )
349 mb = min( n-l+i+ib-1, n )
355 CALL
ztprfb(
'R',
'C',
'F',
'C', m, mb, ib, lb,
356 $ v( 1, i ), ldv, t( 1, i ), ldt,
357 $ a( 1, i ), lda, b, ldb, work, m )