103 SUBROUTINE sptt02( N, NRHS, D, E, X, LDX, B, LDB, RESID )
110 INTEGER LDB, LDX, N, NRHS
114 REAL B( LDB, * ), D( * ), E( * ), X( LDX, * )
121 parameter( one = 1.0e+0, zero = 0.0e+0 )
125 REAL ANORM, BNORM, EPS, XNORM
128 REAL SASUM, SLAMCH, SLANST
129 EXTERNAL sasum, slamch, slanst
148 anorm = slanst(
'1', n, d, e )
152 eps = slamch(
'Epsilon' )
153 IF( anorm.LE.zero )
THEN
160 CALL slaptm( n, nrhs, -one, d, e, x, ldx, one, b, ldb )
167 bnorm = sasum( n, b( 1, j ), 1 )
168 xnorm = sasum( n, x( 1, j ), 1 )
169 IF( xnorm.LE.zero )
THEN
172 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine slaptm(n, nrhs, alpha, d, e, x, ldx, beta, b, ldb)
SLAPTM
subroutine sptt02(n, nrhs, d, e, x, ldx, b, ldb, resid)
SPTT02