103 SUBROUTINE zget04( N, NRHS, X, LDX, XACT, LDXACT, RCOND, RESID )
111 INTEGER ldx, ldxact, n, nrhs
112 DOUBLE PRECISION rcond, resid
115 COMPLEX*16 x( ldx, * ), xact( ldxact, * )
121 DOUBLE PRECISION zero
122 parameter( zero = 0.0d+0 )
126 DOUBLE PRECISION diffnm, eps, xnorm
135 INTRINSIC abs, dble, dimag, max
138 DOUBLE PRECISION cabs1
141 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
147 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
155 IF( rcond.LT.zero )
THEN
166 ix =
izamax( 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
174 $ resid = 1.0d0 / eps
176 resid = max( resid, ( diffnm / xnorm )*rcond )
179 IF( resid*eps.LT.1.0d0 )
180 $ resid = resid / eps