114 SUBROUTINE cptt02( UPLO, N, NRHS, D, E, X, LDX, B, LDB, RESID )
122 INTEGER LDB, LDX, N, NRHS
127 COMPLEX B( LDB, * ), E( * ), X( LDX, * )
134 parameter( one = 1.0e+0, zero = 0.0e+0 )
138 REAL ANORM, BNORM, EPS, XNORM
141 REAL CLANHT, SCASUM, SLAMCH
142 EXTERNAL clanht, scasum, slamch
161 anorm = clanht(
'1', n, d, e )
165 eps = slamch(
'Epsilon' )
166 IF( anorm.LE.zero )
THEN
173 CALL claptm( uplo, n, nrhs, -one, d, e, x, ldx, one, b, ldb )
180 bnorm = scasum( n, b( 1, j ), 1 )
181 xnorm = scasum( n, x( 1, j ), 1 )
182 IF( xnorm.LE.zero )
THEN
185 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