110 SUBROUTINE dgetc2( N, A, LDA, IPIV, JPIV, INFO )
120 INTEGER IPIV( * ), JPIV( * )
121 DOUBLE PRECISION A( LDA, * )
127 DOUBLE PRECISION ZERO, ONE
128 parameter( zero = 0.0d+0, one = 1.0d+0 )
131 INTEGER I, IP, IPV, J, JP, JPV
132 DOUBLE PRECISION BIGNUM, EPS, SMIN, SMLNUM, XMAX
138 DOUBLE PRECISION DLAMCH
156 smlnum = dlamch(
'S' ) / eps
157 bignum = one / smlnum
164 IF( abs( a( 1, 1 ) ).LT.smlnum )
THEN
181 IF( abs( a( ip, jp ) ).GE.xmax )
THEN
182 xmax = abs( a( ip, jp ) )
189 $ smin = max( eps*xmax, smlnum )
194 $
CALL dswap( n, a( ipv, 1 ), lda, a( i, 1 ), lda )
200 $
CALL dswap( n, a( 1, jpv ), 1, a( 1, i ), 1 )
205 IF( abs( a( i, i ) ).LT.smin )
THEN
210 a( j, i ) = a( j, i ) / a( i, i )
212 CALL dger( n-i, n-i, -one, a( i+1, i ), 1, a( i, i+1 ), lda,
213 $ a( i+1, i+1 ), lda )
216 IF( abs( a( n, n ) ).LT.smin )
THEN
subroutine dger(m, n, alpha, x, incx, y, incy, a, lda)
DGER
subroutine dgetc2(n, a, lda, ipiv, jpiv, info)
DGETC2 computes the LU factorization with complete pivoting of the general n-by-n matrix.
subroutine dswap(n, dx, incx, dy, incy)
DSWAP