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
151 anorm =
slanst(
'1', n, d, e )
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 )