103 SUBROUTINE sget04( N, NRHS, X, LDX, XACT, LDXACT, RCOND, RESID )
111 INTEGER LDX, LDXACT, N, NRHS
115 REAL X( ldx, * ), XACT( ldxact, * )
122 parameter ( zero = 0.0e+0 )
126 REAL DIFFNM, EPS, XNORM
131 EXTERNAL isamax, slamch
140 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
147 eps = slamch(
'Epsilon' )
148 IF( rcond.LT.zero )
THEN
159 ix = isamax( n, xact( 1, j ), 1 )
160 xnorm = abs( xact( ix, j ) )
163 diffnm = max( diffnm, abs( x( i, j )-xact( i, j ) ) )
165 IF( xnorm.LE.zero )
THEN
169 resid = max( resid, ( diffnm / xnorm )*rcond )
172 IF( resid*eps.LT.1.0 )
173 $ resid = resid / eps
subroutine sget04(N, NRHS, X, LDX, XACT, LDXACT, RCOND, RESID)
SGET04