130 SUBROUTINE spbcon( UPLO, N, KD, AB, LDAB, ANORM, RCOND, WORK,
139 INTEGER INFO, KD, LDAB, N
144 REAL AB( LDAB, * ), WORK( * )
151 parameter( one = 1.0e+0, zero = 0.0e+0 )
157 REAL AINVNM, SCALE, SCALEL, SCALEU, SMLNUM
166 EXTERNAL lsame, isamax, slamch
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(
'SPBCON', -info )
202 ELSE IF( anorm.EQ.zero )
THEN
206 smlnum = slamch(
'Safe minimum' )
213 CALL slacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
219 CALL slatbs(
'Upper',
'Transpose',
'Non-unit', normin, n,
220 $ kd, ab, ldab, work, scalel, work( 2*n+1 ),
226 CALL slatbs(
'Upper',
'No transpose',
'Non-unit', normin, n,
227 $ kd, ab, ldab, work, scaleu, work( 2*n+1 ),
233 CALL slatbs(
'Lower',
'No transpose',
'Non-unit', normin, n,
234 $ kd, ab, ldab, work, scalel, work( 2*n+1 ),
240 CALL slatbs(
'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 = isamax( n, work, 1 )
250 IF( scale.LT.abs( work( ix ) )*smlnum .OR. scale.EQ.zero )
252 CALL srscl( n, scale, work, 1 )
260 $ rcond = ( one / ainvnm ) / anorm
subroutine xerbla(srname, info)
subroutine slacn2(n, v, x, isgn, est, kase, isave)
SLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
subroutine slatbs(uplo, trans, diag, normin, n, kd, ab, ldab, x, scale, cnorm, info)
SLATBS solves a triangular banded system of equations.
subroutine spbcon(uplo, n, kd, ab, ldab, anorm, rcond, work, iwork, info)
SPBCON
subroutine srscl(n, sa, sx, incx)
SRSCL multiplies a vector by the reciprocal of a real scalar.