147 SUBROUTINE zgbcon( NORM, N, KL, KU, AB, LDAB, IPIV, ANORM, RCOND,
148 $ work, rwork, info )
157 INTEGER INFO, KL, KU, LDAB, N
158 DOUBLE PRECISION ANORM, RCOND
162 DOUBLE PRECISION RWORK( * )
163 COMPLEX*16 AB( ldab, * ), WORK( * )
169 DOUBLE PRECISION ONE, ZERO
170 parameter ( one = 1.0d+0, zero = 0.0d+0 )
173 LOGICAL LNOTI, ONENRM
175 INTEGER IX, J, JP, KASE, KASE1, KD, LM
176 DOUBLE PRECISION AINVNM, SCALE, SMLNUM
185 DOUBLE PRECISION DLAMCH
187 EXTERNAL lsame, izamax, dlamch, zdotc
193 INTRINSIC abs, dble, dimag, min
196 DOUBLE PRECISION CABS1
199 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
206 onenrm = norm.EQ.
'1' .OR. lsame( norm,
'O' )
207 IF( .NOT.onenrm .AND. .NOT.lsame( norm,
'I' ) )
THEN
209 ELSE IF( n.LT.0 )
THEN
211 ELSE IF( kl.LT.0 )
THEN
213 ELSE IF( ku.LT.0 )
THEN
215 ELSE IF( ldab.LT.2*kl+ku+1 )
THEN
217 ELSE IF( anorm.LT.zero )
THEN
221 CALL xerbla(
'ZGBCON', -info )
231 ELSE IF( anorm.EQ.zero )
THEN
235 smlnum = dlamch(
'Safe minimum' )
250 CALL zlacn2( n, work( n+1 ), work, ainvnm, kase, isave )
252 IF( kase.EQ.kase1 )
THEN
262 work( jp ) = work( j )
265 CALL zaxpy( lm, -t, ab( kd+1, j ), 1, work( j+1 ), 1 )
271 CALL zlatbs(
'Upper',
'No transpose',
'Non-unit', normin, n,
272 $ kl+ku, ab, ldab, work, scale, rwork, info )
277 CALL zlatbs(
'Upper',
'Conjugate transpose',
'Non-unit',
278 $ normin, n, kl+ku, ab, ldab, work, scale, rwork,
284 DO 30 j = n - 1, 1, -1
286 work( j ) = work( j ) - zdotc( lm, ab( kd+1, j ), 1,
291 work( jp ) = work( j )
301 IF( scale.NE.one )
THEN
302 ix = izamax( n, work, 1 )
303 IF( scale.LT.cabs1( work( ix ) )*smlnum .OR. scale.EQ.zero )
305 CALL zdrscl( n, scale, work, 1 )
313 $ rcond = ( one / ainvnm ) / anorm
subroutine zdrscl(N, SA, SX, INCX)
ZDRSCL multiplies a vector by the reciprocal of a real scalar.
subroutine zgbcon(NORM, N, KL, KU, AB, LDAB, IPIV, ANORM, RCOND, WORK, RWORK, INFO)
ZGBCON
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.
subroutine zaxpy(N, ZA, ZX, INCX, ZY, INCY)
ZAXPY