103 SUBROUTINE cget04( N, NRHS, X, LDX, XACT, LDXACT, RCOND, RESID )
111 INTEGER LDX, LDXACT, N, NRHS
115 COMPLEX X( ldx, * ), XACT( ldxact, * )
122 parameter ( zero = 0.0e+0 )
126 REAL DIFFNM, EPS, XNORM
132 EXTERNAL icamax, slamch
135 INTRINSIC abs, aimag, max, real
141 cabs1( zdum ) = abs(
REAL( ZDUM ) ) + abs( AIMAG( zdum ) )
147 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
154 eps = slamch(
'Epsilon' )
155 IF( rcond.LT.zero )
THEN
166 ix = icamax( n, xact( 1, j ), 1 )
167 xnorm = cabs1( xact( ix, j ) )
170 diffnm = max( diffnm, cabs1( x( i, j )-xact( i, j ) ) )
172 IF( xnorm.LE.zero )
THEN
176 resid = max( resid, ( diffnm / xnorm )*rcond )
179 IF( resid*eps.LT.1.0 )
180 $ resid = resid / eps
subroutine cget04(N, NRHS, X, LDX, XACT, LDXACT, RCOND, RESID)
CGET04