110 SUBROUTINE sgetc2( N, A, LDA, IPIV, JPIV, INFO )
120 INTEGER IPIV( * ), JPIV( * )
128 parameter( zero = 0.0e+0, one = 1.0e+0 )
131 INTEGER I, IP, IPV, J, JP, JPV
132 REAL BIGNUM, EPS, SMIN, SMLNUM, XMAX
156 smlnum = slamch(
'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 sswap( n, a( ipv, 1 ), lda, a( i, 1 ), lda )
200 $
CALL sswap( 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 sger( 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 sger(m, n, alpha, x, incx, y, incy, a, lda)
SGER
subroutine sgetc2(n, a, lda, ipiv, jpiv, info)
SGETC2 computes the LU factorization with complete pivoting of the general n-by-n matrix.
subroutine sswap(n, sx, incx, sy, incy)
SSWAP