120 SUBROUTINE sppt02( UPLO, N, NRHS, A, X, LDX, B, LDB, RWORK,
129 INTEGER LDB, LDX, N, NRHS
133 REAL A( * ), B( LDB, * ), RWORK( * ), X( LDX, * )
140 parameter( zero = 0.0e+0, one = 1.0e+0 )
144 REAL ANORM, BNORM, EPS, XNORM
147 REAL SASUM, SLAMCH, SLANSP
148 EXTERNAL sasum, slamch, slansp
160 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
167 eps = slamch(
'Epsilon' )
168 anorm = slansp(
'1', uplo, n, a, rwork )
169 IF( anorm.LE.zero )
THEN
177 CALL sspmv( uplo, n, -one, a, x( 1, j ), 1, one, b( 1, j ), 1 )
185 bnorm = sasum( n, b( 1, j ), 1 )
186 xnorm = sasum( n, x( 1, j ), 1 )
187 IF( xnorm.LE.zero )
THEN
190 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine sspmv(uplo, n, alpha, ap, x, incx, beta, y, incy)
SSPMV
subroutine sppt02(uplo, n, nrhs, a, x, ldx, b, ldb, rwork, resid)
SPPT02