116 SUBROUTINE zptt02( UPLO, N, NRHS, D, E, X, LDX, B, LDB, RESID )
125 INTEGER ldb, ldx, n, nrhs
126 DOUBLE PRECISION resid
129 DOUBLE PRECISION d( * )
130 COMPLEX*16 b( ldb, * ), e( * ), x( ldx, * )
136 DOUBLE PRECISION one, zero
137 parameter( one = 1.0d+0, zero = 0.0d+0 )
141 DOUBLE PRECISION anorm, bnorm, eps, xnorm
164 anorm =
zlanht(
'1', n, d, e )
169 IF( anorm.LE.zero )
THEN
176 CALL
zlaptm( uplo, n, nrhs, -one, d, e, x, ldx, one, b, ldb )
183 bnorm =
dzasum( n, b( 1, j ), 1 )
184 xnorm =
dzasum( n, x( 1, j ), 1 )
185 IF( xnorm.LE.zero )
THEN
188 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )