122 SUBROUTINE dgecon( NORM, N, A, LDA, ANORM, RCOND, WORK, IWORK,
132 DOUBLE PRECISION ANORM, RCOND
136 DOUBLE PRECISION A( LDA, * ), WORK( * )
142 DOUBLE PRECISION ONE, ZERO
143 parameter( one = 1.0d+0, zero = 0.0d+0 )
148 INTEGER , KASE, KASE1
149 DOUBLE PRECISION AINVNM, SCALE, SL, SMLNUM, SU
157 DOUBLE PRECISION DLAMCH
158 EXTERNAL lsame, idamax, dlamch
171 onenrm = norm.EQ.
'1' .OR. lsame( norm,
'O' )
172 IF( .NOT.onenrm .AND. .NOT.lsame( norm,
'I' ) )
THEN
174 ELSE IF( n.LT.0 )
THEN
176 ELSE IF( lda.LT.
max( 1, n ) )
THEN
178 ELSE IF( anorm.LT.zero )
THEN
182 CALL xerbla(
'DGECON', -info )
192 ELSE IF( anorm.EQ.zero )
THEN
196 smlnum = dlamch(
'Safe minimum' )
209 CALL dlacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
211 IF( kase.EQ.kase1 )
THEN
215 CALL dlatrs(
'Lower', 'no transpose
', 'unit
', NORMIN, N, A,
216 $ LDA, WORK, SL, WORK( 2*N+1 ), INFO )
220 CALL DLATRS( 'upper
', 'no transpose
', 'non-unit
', NORMIN, N,
221 $ A, LDA, WORK, SU, WORK( 3*N+1 ), INFO )
226 CALL DLATRS( 'upper
', 'transpose
', 'non-unit
', NORMIN, N, A,
227 $ LDA, WORK, SU, WORK( 3*N+1 ), INFO )
231 CALL DLATRS( 'lower
', 'transpose
', 'unit
', NORMIN, N, A,
232 $ LDA, WORK, SL, WORK( 2*N+1 ), INFO )
239.NE.
IF( SCALEONE ) THEN
240 IX = IDAMAX( N, WORK, 1 )
241.LT..OR..EQ.
IF( SCALEABS( WORK( IX ) )*SMLNUM SCALEZERO )
243 CALL DRSCL( N, SCALE, WORK, 1 )
251 $ RCOND = ( ONE / AINVNM ) / ANORM
subroutine xerbla(srname, info)
XERBLA
subroutine dgecon(norm, n, a, lda, anorm, rcond, work, iwork, info)
DGECON
subroutine drscl(n, sa, sx, incx)
DRSCL multiplies a vector by the reciprocal of a real scalar.
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 dlacn2(n, v, x, isgn, est, kase, isave)
DLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...