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
150 REAL SASUM, SLAMCH, SLANSP
151 EXTERNAL sasum, slamch, slansp
163 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
170 eps = slamch(
'Epsilon' )
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 )
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