101 SUBROUTINE sget04( N, NRHS, X, LDX, XACT, LDXACT, RCOND, RESID )
108 INTEGER LDX, LDXACT, N, NRHS
112 REAL X( LDX, * ), XACT( LDXACT, * )
119 parameter( zero = 0.0e+0 )
123 REAL DIFFNM, EPS, XNORM
128 EXTERNAL isamax, slamch
137 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
144 eps = slamch(
'Epsilon' )
145 IF( rcond.LT.zero )
THEN
156 ix = isamax( n, xact( 1, j ), 1 )
157 xnorm = abs( xact( ix, j ) )
160 diffnm = max( diffnm, abs( x( i, j )-xact( i, j ) ) )
162 IF( xnorm.LE.zero )
THEN
166 resid = max( resid, ( diffnm / xnorm )*rcond )
169 IF( resid*eps.LT.1.0 )
170 $ resid = resid / eps
subroutine sget04(n, nrhs, x, ldx, xact, ldxact, rcond, resid)
SGET04