163 SUBROUTINE sget07( TRANS, N, NRHS, A, LDA, B, LDB, X, LDX, XACT,
164 $ LDXACT, FERR, CHKFERR, BERR, RESLTS )
173 INTEGER LDA, LDB, LDX, LDXACT, N, NRHS
176 REAL A( LDA, * ), B( LDB, * ), BERR( * ), FERR( * ),
177 $ reslts( * ), x( ldx, * ), xact( ldxact, * )
184 parameter( zero = 0.0e+0, one = 1.0e+0 )
188 INTEGER I, IMAX, J, K
189 REAL AXBI, DIFF, EPS, ERRBND, OVFL, TMP, UNFL, XNORM
195 EXTERNAL lsame, isamax, slamch
198 INTRINSIC abs, max, min
204 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
210 eps = slamch(
'Epsilon' )
211 unfl = slamch(
'Safe minimum' )
213 notran = lsame( trans,
'N' )
222 imax = isamax( n, x( 1, j ), 1 )
223 xnorm = max( abs( x( imax, j ) ), unfl )
226 diff = max( diff, abs( x( i, j )-xact( i, j ) ) )
229 IF( xnorm.GT.one )
THEN
231 ELSE IF( diff.LE.ovfl*xnorm )
THEN
239 IF( diff / xnorm.LE.ferr( j ) )
THEN
240 errbnd = max( errbnd, ( diff / xnorm ) / ferr( j ) )
253 tmp = abs( b( i, k ) )
256 tmp = tmp + abs( a( i, j ) )*abs( x( j, k ) )
260 tmp = tmp + abs( a( j, i ) )*abs( x( j, k ) )
266 axbi = min( axbi, tmp )
269 tmp = berr( k ) / ( ( n+1 )*eps+( n+1 )*unfl /
270 $ max( axbi, ( n+1 )*unfl ) )
274 reslts( 2 ) = max( reslts( 2 ), tmp )
subroutine sget07(trans, n, nrhs, a, lda, b, ldb, x, ldx, xact, ldxact, ferr, chkferr, berr, reslts)
SGET07