108 SUBROUTINE sgetc2( N, A, LDA, IPIV, JPIV, INFO )
118 INTEGER IPIV( * ), JPIV( * )
126 parameter( zero = 0.0e+0, one = 1.0e+0 )
129 INTEGER I, IP, IPV, J, JP, JPV
130 REAL BIGNUM, EPS, SMIN, SMLNUM, XMAX
154 smlnum = slamch(
'S' ) / eps
155 bignum = one / smlnum
162 IF( abs( a( 1, 1 ) ).LT.smlnum )
THEN
179 IF( abs( a( ip, jp ) ).GE.xmax )
THEN
180 xmax = abs( a( ip, jp ) )
187 $ smin = max( eps*xmax, smlnum )
192 $
CALL sswap( n, a( ipv, 1 ), lda, a( i, 1 ), lda )
198 $
CALL sswap( n, a( 1, jpv ), 1, a( 1, i ), 1 )
203 IF( abs( a( i, i ) ).LT.smin )
THEN
208 a( j, i ) = a( j, i ) / a( i, i )
210 CALL sger( n-i, n-i, -one, a( i+1, i ), 1, a( i, i+1 ), lda,
211 $ a( i+1, i+1 ), lda )
214 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.