101 SUBROUTINE cget04( N, NRHS, X, LDX, XACT, LDXACT, RCOND, RESID )
108 INTEGER LDX, LDXACT, N, NRHS
112 COMPLEX X( LDX, * ), XACT( LDXACT, * )
119 parameter( zero = 0.0e+0 )
123 REAL DIFFNM, EPS, XNORM
129 EXTERNAL icamax, slamch
132 INTRINSIC abs, aimag, max, real
138 cabs1( zdum ) = abs( real( zdum ) ) + abs( aimag( zdum ) )
144 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
151 eps = slamch(
'Epsilon' )
152 IF( rcond.LT.zero )
THEN
163 ix = icamax( n, xact( 1, j ), 1 )
164 xnorm = cabs1( xact( ix, j ) )
167 diffnm = max( diffnm, cabs1( x( i, j )-xact( i, j ) ) )
169 IF( xnorm.LE.zero )
THEN
173 resid = max( resid, ( diffnm / xnorm )*rcond )
176 IF( resid*eps.LT.1.0 )
177 $ resid = resid / eps
subroutine cget04(n, nrhs, x, ldx, xact, ldxact, rcond, resid)
CGET04