112 SUBROUTINE zgetc2( N, A, LDA, IPIV, JPIV, INFO )
123 INTEGER ipiv( * ), jpiv( * )
124 COMPLEX*16 a( lda, * )
130 DOUBLE PRECISION zero, one
131 parameter( zero = 0.0d+0, one = 1.0d+0 )
134 INTEGER i, ip, ipv, j, jp, jpv
135 DOUBLE PRECISION bignum, eps, smin, smlnum, xmax
145 INTRINSIC abs, dcmplx, max
153 smlnum =
dlamch(
'S' ) / eps
154 bignum = one / smlnum
155 CALL
dlabad( smlnum, bignum )
167 IF( abs( a( ip, jp ) ).GE.xmax )
THEN
168 xmax = abs( a( ip, jp ) )
175 $ smin = max( eps*xmax, smlnum )
180 $ CALL
zswap( n, a( ipv, 1 ), lda, a( i, 1 ), lda )
186 $ CALL
zswap( n, a( 1, jpv ), 1, a( 1, i ), 1 )
191 IF( abs( a( i, i ) ).LT.smin )
THEN
193 a( i, i ) = dcmplx( smin, zero )
196 a( j, i ) = a( j, i ) / a( i, i )
198 CALL
zgeru( n-i, n-i, -dcmplx( one ), a( i+1, i ), 1,
199 $ a( i, i+1 ), lda, a( i+1, i+1 ), lda )
202 IF( abs( a( n, n ) ).LT.smin )
THEN
204 a( n, n ) = dcmplx( smin, zero )