143 SUBROUTINE ztbcon( NORM, UPLO, DIAG, N, KD, AB, LDAB, RCOND, WORK,
152 CHARACTER DIAG, NORM, UPLO
153 INTEGER INFO, KD, LDAB, N
154 DOUBLE PRECISION RCOND
157 DOUBLE PRECISION RWORK( * )
158 COMPLEX*16 AB( ldab, * ), WORK( * )
164 DOUBLE PRECISION ONE, ZERO
165 parameter ( one = 1.0d+0, zero = 0.0d+0 )
168 LOGICAL NOUNIT, ONENRM, UPPER
170 INTEGER IX, KASE, KASE1
171 DOUBLE PRECISION AINVNM, ANORM, SCALE, SMLNUM, XNORM
180 DOUBLE PRECISION DLAMCH, ZLANTB
181 EXTERNAL lsame, izamax, dlamch, zlantb
187 INTRINSIC abs, dble, dimag, max
190 DOUBLE PRECISION CABS1
193 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
200 upper = lsame( uplo,
'U' )
201 onenrm = norm.EQ.
'1' .OR. lsame( norm,
'O' )
202 nounit = lsame( diag,
'N' )
204 IF( .NOT.onenrm .AND. .NOT.lsame( norm,
'I' ) )
THEN
206 ELSE IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
208 ELSE IF( .NOT.nounit .AND. .NOT.lsame( diag,
'U' ) )
THEN
210 ELSE IF( n.LT.0 )
THEN
212 ELSE IF( kd.LT.0 )
THEN
214 ELSE IF( ldab.LT.kd+1 )
THEN
218 CALL xerbla(
'ZTBCON', -info )
230 smlnum = dlamch(
'Safe minimum' )*dble( max( n, 1 ) )
234 anorm = zlantb( norm, uplo, diag, n, kd, ab, ldab, rwork )
238 IF( anorm.GT.zero )
THEN
251 CALL zlacn2( n, work( n+1 ), work, ainvnm, kase, isave )
253 IF( kase.EQ.kase1 )
THEN
257 CALL zlatbs( uplo,
'No transpose', diag, normin, n, kd,
258 $ ab, ldab, work, scale, rwork, info )
263 CALL zlatbs( uplo,
'Conjugate transpose', diag, normin,
264 $ n, kd, ab, ldab, work, scale, rwork, info )
270 IF( scale.NE.one )
THEN
271 ix = izamax( n, work, 1 )
272 xnorm = cabs1( work( ix ) )
273 IF( scale.LT.xnorm*smlnum .OR. scale.EQ.zero )
275 CALL zdrscl( n, scale, work, 1 )
283 $ rcond = ( one / anorm ) / ainvnm
subroutine zdrscl(N, SA, SX, INCX)
ZDRSCL multiplies a vector by the reciprocal of a real scalar.
subroutine ztbcon(NORM, UPLO, DIAG, N, KD, AB, LDAB, RCOND, WORK, RWORK, INFO)
ZTBCON
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine zlacn2(N, V, X, EST, KASE, ISAVE)
ZLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
subroutine zlatbs(UPLO, TRANS, DIAG, NORMIN, N, KD, AB, LDAB, X, SCALE, CNORM, INFO)
ZLATBS solves a triangular banded system of equations.