131 SUBROUTINE cpbcon( UPLO, N, KD, AB, LDAB, ANORM, RCOND, WORK,
140 INTEGER INFO, KD, LDAB, N
145 COMPLEX AB( LDAB, * ), WORK( * )
152 parameter( one = 1.0e+0, zero = 0.0e+0 )
158 REAL AINVNM, SCALE, SCALEL, SCALEU, SMLNUM
168 EXTERNAL lsame, icamax, slamch
174 INTRINSIC abs, aimag, real
180 cabs1( zdum ) = abs( real( zdum ) ) + abs( aimag( zdum ) )
187 upper = lsame( uplo,
'U' )
188 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
190 ELSE IF( n.LT.0 )
THEN
192 ELSE IF( kd.LT.0 )
THEN
194 ELSE IF( ldab.LT.kd+1 )
THEN
196 ELSE IF( anorm.LT.zero )
THEN
200 CALL xerbla(
'CPBCON', -info )
210 ELSE IF( anorm.EQ.zero )
THEN
214 smlnum = slamch(
'Safe minimum' )
221 CALL clacn2( n, work( n+1 ), work, ainvnm, kase, isave )
227 CALL clatbs(
'Upper',
'Conjugate transpose',
'Non-unit',
228 $ normin, n, kd, ab, ldab, work, scalel, rwork,
234 CALL clatbs(
'Upper',
'No transpose',
'Non-unit', normin, n,
235 $ kd, ab, ldab, work, scaleu, rwork, info )
240 CALL clatbs(
'Lower',
'No transpose',
'Non-unit', normin, n,
241 $ kd, ab, ldab, work, scalel, rwork, info )
246 CALL clatbs(
'Lower',
'Conjugate transpose',
'Non-unit',
247 $ normin, n, kd, ab, ldab, work, scaleu, rwork,
253 scale = scalel*scaleu
254 IF( scale.NE.one )
THEN
255 ix = icamax( n, work, 1 )
256 IF( scale.LT.cabs1( work( ix ) )*smlnum .OR. scale.EQ.zero )
258 CALL csrscl( n, scale, work, 1 )
266 $ rcond = ( one / ainvnm ) / anorm
subroutine xerbla(srname, info)
subroutine clacn2(n, v, x, est, kase, isave)
CLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
subroutine clatbs(uplo, trans, diag, normin, n, kd, ab, ldab, x, scale, cnorm, info)
CLATBS solves a triangular banded system of equations.
subroutine cpbcon(uplo, n, kd, ab, ldab, anorm, rcond, work, rwork, info)
CPBCON
subroutine csrscl(n, sa, sx, incx)
CSRSCL multiplies a vector by the reciprocal of a real scalar.