165 SUBROUTINE dget07( TRANS, N, NRHS, A, LDA, B, LDB, X, LDX, XACT,
166 $ ldxact, ferr, chkferr, berr, reslts )
176 INTEGER LDA, LDB, LDX, LDXACT, N, NRHS
179 DOUBLE PRECISION A( lda, * ), B( ldb, * ), BERR( * ), FERR( * ),
180 $ reslts( * ), x( ldx, * ), xact( ldxact, * )
186 DOUBLE PRECISION ZERO, ONE
187 parameter ( zero = 0.0d+0, one = 1.0d+0 )
191 INTEGER I, IMAX, J, K
192 DOUBLE PRECISION AXBI, DIFF, EPS, ERRBND, OVFL, TMP, UNFL, XNORM
197 DOUBLE PRECISION DLAMCH
198 EXTERNAL lsame, idamax, dlamch
201 INTRINSIC abs, max, min
207 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
213 eps = dlamch(
'Epsilon' )
214 unfl = dlamch(
'Safe minimum' )
216 notran = lsame( trans,
'N' )
225 imax = idamax( n, x( 1, j ), 1 )
226 xnorm = max( abs( x( imax, j ) ), unfl )
229 diff = max( diff, abs( x( i, j )-xact( i, j ) ) )
232 IF( xnorm.GT.one )
THEN
234 ELSE IF( diff.LE.ovfl*xnorm )
THEN
242 IF( diff / xnorm.LE.ferr( j ) )
THEN
243 errbnd = max( errbnd, ( diff / xnorm ) / ferr( j ) )
256 tmp = abs( b( i, k ) )
259 tmp = tmp + abs( a( i, j ) )*abs( x( j, k ) )
263 tmp = tmp + abs( a( j, i ) )*abs( x( j, k ) )
269 axbi = min( axbi, tmp )
272 tmp = berr( k ) / ( ( n+1 )*eps+( n+1 )*unfl /
273 $ max( axbi, ( n+1 )*unfl ) )
277 reslts( 2 ) = max( reslts( 2 ), tmp )
subroutine dget07(TRANS, N, NRHS, A, LDA, B, LDB, X, LDX, XACT, LDXACT, FERR, CHKFERR, BERR, RESLTS)
DGET07