154 SUBROUTINE sppt05( UPLO, N, NRHS, AP, B, LDB, X, LDX, XACT,
155 $ LDXACT, FERR, BERR, RESLTS )
163 INTEGER LDB, LDX, LDXACT, N, NRHS
166 REAL AP( * ), B( LDB, * ), BERR( * ), FERR( * ),
167 $ reslts( * ), x( ldx, * ), xact( ldxact, * )
174 parameter( zero = 0.0e+0, one = 1.0e+0 )
178 INTEGER I, IMAX, J, JC, K
179 REAL AXBI, DIFF, EPS, ERRBND, OVFL, TMP, UNFL, XNORM
185 EXTERNAL lsame, isamax, slamch
188 INTRINSIC abs, max, min
194 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
200 eps = slamch(
'Epsilon' )
201 unfl = slamch(
'Safe minimum' )
203 upper = lsame( uplo,
'U' )
211 imax = isamax( n, x( 1, j ), 1 )
212 xnorm = max( abs( x( imax, j ) ), unfl )
215 diff = max( diff, abs( x( i, j )-xact( i, j ) ) )
218 IF( xnorm.GT.one )
THEN
220 ELSE IF( diff.LE.ovfl*xnorm )
THEN
228 IF( diff / xnorm.LE.ferr( j ) )
THEN
229 errbnd = max( errbnd, ( diff / xnorm ) / ferr( j ) )
241 tmp = abs( b( i, k ) )
243 jc = ( ( i-1 )*i ) / 2
245 tmp = tmp + abs( ap( jc+j ) )*abs( x( j, k ) )
249 tmp = tmp + abs( ap( jc ) )*abs( x( j, k ) )
255 tmp = tmp + abs( ap( jc ) )*abs( x( j, k ) )
259 tmp = tmp + abs( ap( jc+j-i ) )*abs( x( j, k ) )
265 axbi = min( axbi, tmp )
268 tmp = berr( k ) / ( ( n+1 )*eps+( n+1 )*unfl /
269 $ max( axbi, ( n+1 )*unfl ) )
273 reslts( 2 ) = max( reslts( 2 ), tmp )
subroutine sppt05(uplo, n, nrhs, ap, b, ldb, x, ldx, xact, ldxact, ferr, berr, reslts)
SPPT05