122 SUBROUTINE sppt02( UPLO, N, NRHS, A, X, LDX, B, LDB, RWORK,
132 INTEGER ldb, ldx, n, nrhs
136 REAL a( * ), b( ldb, * ), rwork( * ), x( ldx, * )
143 parameter( zero = 0.0e+0, one = 1.0e+0 )
147 REAL anorm, bnorm, eps, xnorm
163 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
171 anorm =
slansp(
'1', uplo, n, a, rwork )
172 IF( anorm.LE.zero )
THEN
180 CALL
sspmv( uplo, n, -one, a, x( 1, j ), 1, one, b( 1, j ), 1 )
188 bnorm =
sasum( n, b( 1, j ), 1 )
189 xnorm =
sasum( n, x( 1, j ), 1 )
190 IF( xnorm.LE.zero )
THEN
193 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )