163 SUBROUTINE dget07( 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 DOUBLE PRECISION A( LDA, * ), B( LDB, * ), BERR( * ), FERR( * ),
177 $ reslts( * ), x( ldx, * ), xact( ldxact, * )
183 DOUBLE PRECISION ZERO, ONE
184 parameter( zero = 0.0d+0, one = 1.0d+0 )
188 INTEGER I, IMAX, J, K
189 DOUBLE PRECISION AXBI, DIFF, EPS, ERRBND, OVFL, TMP, UNFL, XNORM
194 DOUBLE PRECISION DLAMCH
195 EXTERNAL lsame, idamax, dlamch
198 INTRINSIC abs, max, min
204 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
210 eps = dlamch(
'Epsilon' )
211 unfl = dlamch(
'Safe minimum' )
213 notran = lsame( trans,
'N' )
222 imax = idamax( 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 dget07(trans, n, nrhs, a, lda, b, ldb, x, ldx, xact, ldxact, ferr, chkferr, berr, reslts)
DGET07