130 SUBROUTINE dpbcon( UPLO, N, KD, AB, LDAB, ANORM, RCOND, WORK,
139 INTEGER INFO, KD, LDAB, N
140 DOUBLE PRECISION ANORM, RCOND
144 DOUBLE PRECISION AB( LDAB, * ), WORK( * )
150 DOUBLE PRECISION ONE, ZERO
151 parameter( one = 1.0d+0, zero = 0.0d+0 )
157 DOUBLE PRECISION AINVNM, SCALE, SCALEL, SCALEU, SMLNUM
165 DOUBLE PRECISION DLAMCH
166 EXTERNAL lsame, idamax, dlamch
179 upper = lsame( uplo,
'U' )
180 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
182 ELSE IF( n.LT.0 )
THEN
184 ELSE IF( kd.LT.0 )
THEN
186 ELSE IF( ldab.LT.kd+1 )
THEN
188 ELSE IF( anorm.LT.zero )
THEN
192 CALL xerbla(
'DPBCON', -info )
202 ELSE IF( anorm.EQ.zero )
THEN
206 smlnum = dlamch(
'Safe minimum' )
213 CALL dlacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
219 CALL dlatbs(
'Upper',
'Transpose',
'Non-unit', normin, n,
220 $ kd, ab, ldab, work, scalel, work( 2*n+1 ),
226 CALL dlatbs(
'Upper',
'No transpose',
'Non-unit', normin, n,
227 $ kd, ab, ldab, work, scaleu, work( 2*n+1 ),
233 CALL dlatbs(
'Lower',
'No transpose',
'Non-unit', normin, n,
234 $ kd, ab, ldab, work, scalel, work( 2*n+1 ),
240 CALL dlatbs(
'Lower',
'Transpose',
'Non-unit', normin, n,
241 $ kd, ab, ldab, work, scaleu, work( 2*n+1 ),
247 scale = scalel*scaleu
248 IF( scale.NE.one )
THEN
249 ix = idamax( n, work, 1 )
250 IF( scale.LT.abs( work( ix ) )*smlnum .OR. scale.EQ.zero )
252 CALL drscl( n, scale, work, 1 )
260 $ rcond = ( one / ainvnm ) / anorm
subroutine xerbla(srname, info)
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 dlatbs(uplo, trans, diag, normin, n, kd, ab, ldab, x, scale, cnorm, info)
DLATBS solves a triangular banded system of equations.
subroutine dpbcon(uplo, n, kd, ab, ldab, anorm, rcond, work, iwork, info)
DPBCON
subroutine drscl(n, sa, sx, incx)
DRSCL multiplies a vector by the reciprocal of a real scalar.