154 SUBROUTINE dppt05( UPLO, N, NRHS, AP, B, LDB, X, LDX, XACT,
155 $ LDXACT, FERR, BERR, RESLTS )
163 INTEGER LDB, LDX, LDXACT, N, NRHS
166 DOUBLE PRECISION AP( * ), B( LDB, * ), BERR( * ), FERR( * ),
167 $ reslts( * ), x( ldx, * ), xact( ldxact, * )
173 DOUBLE PRECISION ZERO, ONE
174 parameter( zero = 0.0d+0, one = 1.0d+0 )
178 INTEGER I, IMAX, J, JC, K
179 DOUBLE PRECISION AXBI, DIFF, EPS, ERRBND, OVFL, TMP, UNFL, XNORM
184 DOUBLE PRECISION DLAMCH
185 EXTERNAL lsame, idamax, dlamch
188 INTRINSIC abs, max, min
194 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
200 eps = dlamch(
'Epsilon' )
201 unfl = dlamch(
'Safe minimum' )
203 upper = lsame( uplo,
'U' )
211 imax = idamax( 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 dppt05(uplo, n, nrhs, ap, b, ldb, x, ldx, xact, ldxact, ferr, berr, reslts)
DPPT05