153 $ LDAB, AFB, LDAFB, IPIV,
154 $ X, INFO, WORK, RWORK )
162 INTEGER n, kl, ku, kd, ke, ldab, ldafb, info
166 COMPLEX*16 ab( ldab, * ), afb( ldafb, * ), work( * ),
168 DOUBLE PRECISION rwork( * )
176 DOUBLE PRECISION ainvnm, anorm, tmp
193 DOUBLE PRECISION cabs1
196 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
203 notrans =
lsame( trans,
'N' )
204 IF ( .NOT. notrans .AND. .NOT.
lsame(trans,
'T') .AND. .NOT.
205 $
lsame( trans,
'C' ) )
THEN
207 ELSE IF( n.LT.0 )
THEN
209 ELSE IF( kl.LT.0 .OR. kl.GT.n-1 )
THEN
211 ELSE IF( ku.LT.0 .OR. ku.GT.n-1 )
THEN
213 ELSE IF( ldab.LT.kl+ku+1 )
THEN
215 ELSE IF( ldafb.LT.2*kl+ku+1 )
THEN
219 CALL xerbla(
'ZLA_GBRCOND_X', -info )
231 DO j = max( i-kl, 1 ), min( i+ku, n )
232 tmp = tmp + cabs1( ab( kd+i-j, j) * x( j ) )
235 anorm = max( anorm, tmp )
240 DO j = max( i-kl, 1 ), min( i+ku, n )
241 tmp = tmp + cabs1( ab( ke-i+j, i ) * x( j ) )
244 anorm = max( anorm, tmp )
253 ELSE IF( anorm .EQ. 0.0d+0 )
THEN
263 CALL zlacn2( n, work( n+1 ), work, ainvnm, kase, isave )
270 work( i ) = work( i ) * rwork( i )
274 CALL zgbtrs(
'No transpose', n, kl, ku, 1, afb, ldafb,
275 $ ipiv, work, n, info )
277 CALL zgbtrs(
'Conjugate transpose', n, kl, ku, 1, afb,
278 $ ldafb, ipiv, work, n, info )
284 work( i ) = work( i ) / x( i )
291 work( i ) = work( i ) / x( i )
295 CALL zgbtrs(
'Conjugate transpose', n, kl, ku, 1, afb,
296 $ ldafb, ipiv, work, n, info )
298 CALL zgbtrs(
'No transpose', n, kl, ku, 1, afb, ldafb,
299 $ ipiv, work, n, info )
305 work( i ) = work( i ) * rwork( i )
313 IF( ainvnm .NE. 0.0d+0 )
subroutine xerbla(srname, info)
subroutine zgbtrs(trans, n, kl, ku, nrhs, ab, ldab, ipiv, b, ldb, info)
ZGBTRS
double precision function zla_gbrcond_x(trans, n, kl, ku, ab, ldab, afb, ldafb, ipiv, x, info, work, rwork)
ZLA_GBRCOND_X computes the infinity norm condition number of op(A)*diag(x) for general banded matrice...
subroutine zlacn2(n, v, x, est, kase, isave)
ZLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
logical function lsame(ca, cb)
LSAME