124 SUBROUTINE zgtt02( TRANS, N, NRHS, DL, D, DU, X, LDX, B, LDB,
134 INTEGER ldb, ldx, n, nrhs
135 DOUBLE PRECISION resid
138 COMPLEX*16 b( ldb, * ), d( * ), dl( * ), du( * ),
145 DOUBLE PRECISION one, zero
146 parameter( one = 1.0d+0, zero = 0.0d+0 )
150 DOUBLE PRECISION anorm, bnorm, eps, xnorm
168 IF( n.LE.0 .OR. nrhs.EQ.0 )
174 IF(
lsame( trans,
'N' ) )
THEN
175 anorm =
zlangt(
'1', n, dl, d, du )
177 anorm =
zlangt(
'I', n, dl, d, du )
183 IF( anorm.LE.zero )
THEN
190 CALL
zlagtm( trans, n, nrhs, -one, dl, d, du, x, ldx, one, b,
194 bnorm =
dzasum( n, b( 1, j ), 1 )
195 xnorm =
dzasum( n, x( 1, j ), 1 )
196 IF( xnorm.LE.zero )
THEN
199 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )