105 SUBROUTINE sptt02( N, NRHS, D, E, X, LDX, B, LDB, RESID )
113 INTEGER LDB, LDX, N, NRHS
117 REAL B( ldb, * ), D( * ), E( * ), X( ldx, * )
124 parameter ( one = 1.0e+0, zero = 0.0e+0 )
128 REAL ANORM, BNORM, EPS, XNORM
131 REAL SASUM, SLAMCH, SLANST
132 EXTERNAL sasum, slamch, slanst
151 anorm = slanst(
'1', n, d, e )
155 eps = slamch(
'Epsilon' )
156 IF( anorm.LE.zero )
THEN
163 CALL slaptm( n, nrhs, -one, d, e, x, ldx, one, b, ldb )
170 bnorm = sasum( n, b( 1, j ), 1 )
171 xnorm = sasum( n, x( 1, j ), 1 )
172 IF( xnorm.LE.zero )
THEN
175 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine sptt02(N, NRHS, D, E, X, LDX, B, LDB, RESID)
SPTT02
subroutine slaptm(N, NRHS, ALPHA, D, E, X, LDX, BETA, B, LDB)
SLAPTM