122 SUBROUTINE dppt02( UPLO, N, NRHS, A, X, LDX, B, LDB, RWORK,
132 INTEGER LDB, LDX, N, NRHS
133 DOUBLE PRECISION RESID
136 DOUBLE PRECISION A( * ), B( ldb, * ), RWORK( * ), X( ldx, * )
142 DOUBLE PRECISION ZERO, ONE
143 parameter ( zero = 0.0d+0, one = 1.0d+0 )
147 DOUBLE PRECISION ANORM, BNORM, EPS, XNORM
150 DOUBLE PRECISION DASUM, DLAMCH, DLANSP
151 EXTERNAL dasum, dlamch, dlansp
163 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
170 eps = dlamch(
'Epsilon' )
171 anorm = dlansp(
'1', uplo, n, a, rwork )
172 IF( anorm.LE.zero )
THEN
180 CALL dspmv( uplo, n, -one, a, x( 1, j ), 1, one, b( 1, j ), 1 )
188 bnorm = dasum( n, b( 1, j ), 1 )
189 xnorm = dasum( n, x( 1, j ), 1 )
190 IF( xnorm.LE.zero )
THEN
193 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine dspmv(UPLO, N, ALPHA, AP, X, INCX, BETA, Y, INCY)
DSPMV
subroutine dppt02(UPLO, N, NRHS, A, X, LDX, B, LDB, RWORK, RESID)
DPPT02