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
144 REAL CLANHT, SCASUM, SLAMCH
145 EXTERNAL clanht, scasum, slamch
164 anorm = clanht(
'1', n, d, e )
168 eps = slamch(
'Epsilon' )
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 )
subroutine claptm(UPLO, N, NRHS, ALPHA, D, E, X, LDX, BETA, B, LDB)
CLAPTM
subroutine cptt02(UPLO, N, NRHS, D, E, X, LDX, B, LDB, RESID)
CPTT02