132 SUBROUTINE dpbcon( UPLO, N, KD, AB, LDAB, ANORM, RCOND, WORK,
142 INTEGER info, kd, ldab, n
143 DOUBLE PRECISION anorm, rcond
147 DOUBLE PRECISION ab( ldab, * ), work( * )
153 DOUBLE PRECISION one, zero
154 parameter( one = 1.0d+0, zero = 0.0d+0 )
160 DOUBLE PRECISION ainvnm, scale, scalel, scaleu, smlnum
182 upper =
lsame( uplo,
'U' )
183 IF( .NOT.upper .AND. .NOT.
lsame( uplo,
'L' ) )
THEN
185 ELSE IF( n.LT.0 )
THEN
187 ELSE IF( kd.LT.0 )
THEN
189 ELSE IF( ldab.LT.kd+1 )
THEN
191 ELSE IF( anorm.LT.zero )
THEN
195 CALL
xerbla(
'DPBCON', -info )
205 ELSE IF( anorm.EQ.zero )
THEN
209 smlnum =
dlamch(
'Safe minimum' )
216 CALL
dlacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
222 CALL
dlatbs(
'Upper',
'Transpose',
'Non-unit', normin, n,
223 $ kd, ab, ldab, work, scalel, work( 2*n+1 ),
229 CALL
dlatbs(
'Upper',
'No transpose',
'Non-unit', normin, n,
230 $ kd, ab, ldab, work, scaleu, work( 2*n+1 ),
236 CALL
dlatbs(
'Lower',
'No transpose',
'Non-unit', normin, n,
237 $ kd, ab, ldab, work, scalel, work( 2*n+1 ),
243 CALL
dlatbs(
'Lower',
'Transpose',
'Non-unit', normin, n,
244 $ kd, ab, ldab, work, scaleu, work( 2*n+1 ),
250 scale = scalel*scaleu
251 IF( scale.NE.one )
THEN
253 IF( scale.LT.abs( work( ix ) )*smlnum .OR. scale.EQ.zero )
255 CALL
drscl( n, scale, work, 1 )
263 $ rcond = ( one / ainvnm ) / anorm