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