146 SUBROUTINE dgbcon( NORM, N, KL, KU, AB, LDAB, IPIV, ANORM, RCOND,
147 $ work, iwork, info )
156 INTEGER INFO, KL, KU, LDAB, N
157 DOUBLE PRECISION ANORM, RCOND
160 INTEGER IPIV( * ), IWORK( * )
161 DOUBLE PRECISION AB( ldab, * ), WORK( * )
167 DOUBLE PRECISION ONE, ZERO
168 parameter ( one = 1.0d+0, zero = 0.0d+0 )
171 LOGICAL LNOTI, ONENRM
173 INTEGER IX, J, JP, KASE, KASE1, KD, LM
174 DOUBLE PRECISION AINVNM, SCALE, SMLNUM, T
182 DOUBLE PRECISION DDOT, DLAMCH
183 EXTERNAL lsame, idamax, ddot, dlamch
196 onenrm = norm.EQ.
'1' .OR. lsame( norm,
'O' )
197 IF( .NOT.onenrm .AND. .NOT.lsame( norm,
'I' ) )
THEN
199 ELSE IF( n.LT.0 )
THEN
201 ELSE IF( kl.LT.0 )
THEN
203 ELSE IF( ku.LT.0 )
THEN
205 ELSE IF( ldab.LT.2*kl+ku+1 )
THEN
207 ELSE IF( anorm.LT.zero )
THEN
211 CALL xerbla(
'DGBCON', -info )
221 ELSE IF( anorm.EQ.zero )
THEN
225 smlnum = dlamch(
'Safe minimum' )
240 CALL dlacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
242 IF( kase.EQ.kase1 )
THEN
252 work( jp ) = work( j )
255 CALL daxpy( lm, -t, ab( kd+1, j ), 1, work( j+1 ), 1 )
261 CALL dlatbs(
'Upper',
'No transpose',
'Non-unit', normin, n,
262 $ kl+ku, ab, ldab, work, scale, work( 2*n+1 ),
268 CALL dlatbs(
'Upper',
'Transpose',
'Non-unit', normin, n,
269 $ kl+ku, ab, ldab, work, scale, work( 2*n+1 ),
275 DO 30 j = n - 1, 1, -1
277 work( j ) = work( j ) - ddot( lm, ab( kd+1, j ), 1,
282 work( jp ) = work( j )
292 IF( scale.NE.one )
THEN
293 ix = idamax( n, work, 1 )
294 IF( scale.LT.abs( work( ix ) )*smlnum .OR. scale.EQ.zero )
296 CALL drscl( n, scale, work, 1 )
304 $ rcond = ( one / ainvnm ) / anorm
subroutine daxpy(N, DA, DX, INCX, DY, INCY)
DAXPY
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine drscl(N, SA, SX, INCX)
DRSCL multiplies a vector by the reciprocal of a real scalar.
subroutine dlatbs(UPLO, TRANS, DIAG, NORMIN, N, KD, AB, LDAB, X, SCALE, CNORM, INFO)
DLATBS solves a triangular banded system of equations.
subroutine dgbcon(NORM, N, KL, KU, AB, LDAB, IPIV, ANORM, RCOND, WORK, IWORK, INFO)
DGBCON
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...