155 $ ldab, afb, ldafb, ipiv,
156 $ x, info, work, rwork )
165 INTEGER n, kl, ku, kd, ke, ldab, ldafb, info
169 COMPLEX*16 ab( ldab, * ), afb( ldafb, * ), work( * ),
171 DOUBLE PRECISION rwork( * )
179 DOUBLE PRECISION ainvnm, anorm, tmp
196 DOUBLE PRECISION cabs1
199 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
206 notrans =
lsame( trans,
'N' )
207 IF ( .NOT. notrans .AND. .NOT.
lsame(trans,
'T') .AND. .NOT.
208 $
lsame( trans,
'C' ) )
THEN
210 ELSE IF( n.LT.0 )
THEN
212 ELSE IF( kl.LT.0 .OR. kl.GT.n-1 )
THEN
214 ELSE IF( ku.LT.0 .OR. ku.GT.n-1 )
THEN
216 ELSE IF( ldab.LT.kl+ku+1 )
THEN
218 ELSE IF( ldafb.LT.2*kl+ku+1 )
THEN
222 CALL
xerbla(
'ZLA_GBRCOND_X', -info )
234 DO j = max( i-kl, 1 ), min( i+ku, n )
235 tmp = tmp + cabs1( ab( kd+i-j, j) * x( j ) )
238 anorm = max( anorm, tmp )
243 DO j = max( i-kl, 1 ), min( i+ku, n )
244 tmp = tmp + cabs1( ab( ke-i+j, i ) * x( j ) )
247 anorm = max( anorm, tmp )
256 ELSE IF( anorm .EQ. 0.0d+0 )
THEN
266 CALL
zlacn2( n, work( n+1 ), work, ainvnm, kase, isave )
273 work( i ) = work( i ) * rwork( i )
277 CALL
zgbtrs(
'No transpose', n, kl, ku, 1, afb, ldafb,
278 $ ipiv, work, n, info )
280 CALL
zgbtrs(
'Conjugate transpose', n, kl, ku, 1, afb,
281 $ ldafb, ipiv, work, n, info )
287 work( i ) = work( i ) / x( i )
294 work( i ) = work( i ) / x( i )
298 CALL
zgbtrs(
'Conjugate transpose', n, kl, ku, 1, afb,
299 $ ldafb, ipiv, work, n, info )
301 CALL
zgbtrs(
'No transpose', n, kl, ku, 1, afb, ldafb,
302 $ ipiv, work, n, info )
308 work( i ) = work( i ) * rwork( i )
316 IF( ainvnm .NE. 0.0d+0 )