162 $ ldab, afb, ldafb, ipiv,
163 $ c, capply, info, work,
174 INTEGER n, kl, ku, kd, ke, ldab, ldafb, info
178 COMPLEX*16 ab( ldab, * ), afb( ldafb, * ), work( * )
179 DOUBLE PRECISION c( * ), rwork( * )
187 DOUBLE PRECISION ainvnm, anorm, tmp
204 DOUBLE PRECISION cabs1
207 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
213 notrans =
lsame( trans,
'N' )
214 IF ( .NOT. notrans .AND. .NOT.
lsame( trans,
'T' ) .AND. .NOT.
215 $
lsame( trans,
'C' ) )
THEN
217 ELSE IF( n.LT.0 )
THEN
219 ELSE IF( kl.LT.0 .OR. kl.GT.n-1 )
THEN
221 ELSE IF( ku.LT.0 .OR. ku.GT.n-1 )
THEN
223 ELSE IF( ldab.LT.kl+ku+1 )
THEN
225 ELSE IF( ldafb.LT.2*kl+ku+1 )
THEN
229 CALL
xerbla(
'ZLA_GBRCOND_C', -info )
242 DO j = max( i-kl, 1 ), min( i+ku, n )
243 tmp = tmp + cabs1( ab( kd+i-j, j ) ) / c( j )
246 DO j = max( i-kl, 1 ), min( i+ku, n )
247 tmp = tmp + cabs1( ab( kd+i-j, j ) )
251 anorm = max( anorm, tmp )
257 DO j = max( i-kl, 1 ), min( i+ku, n )
258 tmp = tmp + cabs1( ab( ke-i+j, i ) ) / c( j )
261 DO j = max( i-kl, 1 ), min( i+ku, n )
262 tmp = tmp + cabs1( ab( ke-i+j, i ) )
266 anorm = max( anorm, tmp )
275 ELSE IF( anorm .EQ. 0.0d+0 )
THEN
285 CALL
zlacn2( n, work( n+1 ), work, ainvnm, kase, isave )
292 work( i ) = work( i ) * rwork( i )
296 CALL
zgbtrs(
'No transpose', n, kl, ku, 1, afb, ldafb,
297 $ ipiv, work, n, info )
299 CALL
zgbtrs(
'Conjugate transpose', n, kl, ku, 1, afb,
300 $ ldafb, ipiv, work, n, info )
307 work( i ) = work( i ) * c( i )
316 work( i ) = work( i ) * c( i )
321 CALL
zgbtrs(
'Conjugate transpose', n, kl, ku, 1, afb,
322 $ ldafb, ipiv, work, n, info )
324 CALL
zgbtrs(
'No transpose', n, kl, ku, 1, afb, ldafb,
325 $ ipiv, work, n, info )
331 work( i ) = work( i ) * rwork( i )
339 IF( ainvnm .NE. 0.0d+0 )