130 SUBROUTINE dgecon( NORM, N, A, LDA, ANORM, RCOND, WORK, IWORK,
140 DOUBLE PRECISION ANORM, RCOND
144 DOUBLE PRECISION A( LDA, * ), WORK( * )
150 DOUBLE PRECISION ONE, ZERO
151 parameter( one = 1.0d+0, zero = 0.0d+0 )
156 INTEGER IX, KASE, KASE1
157 DOUBLE PRECISION AINVNM, SCALE, SL, SMLNUM, SU, HUGEVAL
163 LOGICAL LSAME, DISNAN
165 DOUBLE PRECISION DLAMCH
166 EXTERNAL lsame, idamax, dlamch, disnan
176 hugeval = dlamch(
'Overflow' )
181 onenrm = norm.EQ.
'1' .OR. lsame( norm,
'O' )
182 IF( .NOT.onenrm .AND. .NOT.lsame( norm,
'I' ) )
THEN
184 ELSE IF( n.LT.0 )
THEN
186 ELSE IF( lda.LT.max( 1, n ) )
THEN
188 ELSE IF( anorm.LT.zero )
THEN
192 CALL xerbla(
'DGECON', -info )
202 ELSE IF( anorm.EQ.zero )
THEN
204 ELSE IF( disnan( anorm ) )
THEN
208 ELSE IF( anorm.GT.hugeval )
THEN
213 smlnum = dlamch(
'Safe minimum' )
226 CALL dlacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
228 IF( kase.EQ.kase1 )
THEN
232 CALL dlatrs(
'Lower',
'No transpose',
'Unit', normin, n, a,
233 $ lda, work, sl, work( 2*n+1 ), info )
237 CALL dlatrs(
'Upper',
'No transpose',
'Non-unit', normin, n,
238 $ a, lda, work, su, work( 3*n+1 ), info )
243 CALL dlatrs(
'Upper',
'Transpose',
'Non-unit', normin, n, a,
244 $ lda, work, su, work( 3*n+1 ), info )
248 CALL dlatrs(
'Lower',
'Transpose',
'Unit', normin, n, a,
249 $ lda, work, sl, work( 2*n+1 ), info )
256 IF( scale.NE.one )
THEN
257 ix = idamax( n, work, 1 )
258 IF( scale.LT.abs( work( ix ) )*smlnum .OR. scale.EQ.zero )
260 CALL drscl( n, scale, work, 1 )
267 IF( ainvnm.NE.zero )
THEN
268 rcond = ( one / ainvnm ) / anorm
276 IF( disnan( rcond ) .OR. rcond.GT.hugeval )
subroutine xerbla(srname, info)
subroutine dgecon(norm, n, a, lda, anorm, rcond, work, iwork, info)
DGECON
subroutine dlacn2(n, v, x, isgn, est, kase, isave)
DLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
subroutine dlatrs(uplo, trans, diag, normin, n, a, lda, x, scale, cnorm, info)
DLATRS solves a triangular system of equations with the scale factor set to prevent overflow.
subroutine drscl(n, sa, sx, incx)
DRSCL multiplies a vector by the reciprocal of a real scalar.