159 $ ldafb, ipiv, c, capply, info, work,
169 INTEGER n, kl, ku, kd, ke, ldab, ldafb, info
173 COMPLEX ab( ldab, * ), afb( ldafb, * ), work( * )
174 REAL c( * ), rwork( * )
182 REAL ainvnm, anorm, tmp
202 cabs1( zdum ) = abs( real( zdum ) ) + abs( aimag( zdum ) )
208 notrans =
lsame( trans,
'N' )
209 IF ( .NOT. notrans .AND. .NOT.
lsame( trans,
'T' ) .AND. .NOT.
210 $
lsame( trans,
'C' ) )
THEN
212 ELSE IF( n.LT.0 )
THEN
214 ELSE IF( kl.LT.0 .OR. kl.GT.n-1 )
THEN
216 ELSE IF( ku.LT.0 .OR. ku.GT.n-1 )
THEN
218 ELSE IF( ldab.LT.kl+ku+1 )
THEN
220 ELSE IF( ldafb.LT.2*kl+ku+1 )
THEN
224 CALL xerbla(
'CLA_GBRCOND_C', -info )
237 DO j = max( i-kl, 1 ), min( i+ku, n )
238 tmp = tmp + cabs1( ab( kd+i-j, j ) ) / c( j )
241 DO j = max( i-kl, 1 ), min( i+ku, n )
242 tmp = tmp + cabs1( ab( kd+i-j, j ) )
246 anorm = max( anorm, tmp )
252 DO j = max( i-kl, 1 ), min( i+ku, n )
253 tmp = tmp + cabs1( ab( ke-i+j, i ) ) / c( j )
256 DO j = max( i-kl, 1 ), min( i+ku, n )
257 tmp = tmp + cabs1( ab( ke-i+j, i ) )
261 anorm = max( anorm, tmp )
270 ELSE IF( anorm .EQ. 0.0e+0 )
THEN
280 CALL clacn2( n, work( n+1 ), work, ainvnm, kase, isave )
287 work( i ) = work( i ) * rwork( i )
291 CALL cgbtrs(
'No transpose', n, kl, ku, 1, afb, ldafb,
292 $ ipiv, work, n, info )
294 CALL cgbtrs(
'Conjugate transpose', n, kl, ku, 1, afb,
295 $ ldafb, ipiv, work, n, info )
302 work( i ) = work( i ) * c( i )
311 work( i ) = work( i ) * c( i )
316 CALL cgbtrs(
'Conjugate transpose', n, kl, ku, 1, afb,
317 $ ldafb, ipiv, work, n, info )
319 CALL cgbtrs(
'No transpose', n, kl, ku, 1, afb, ldafb,
320 $ ipiv, work, n, info )
326 work( i ) = work( i ) * rwork( i )
334 IF( ainvnm .NE. 0.0e+0 )
subroutine xerbla(srname, info)
subroutine cgbtrs(trans, n, kl, ku, nrhs, ab, ldab, ipiv, b, ldb, info)
CGBTRS
real function cla_gbrcond_c(trans, n, kl, ku, ab, ldab, afb, ldafb, ipiv, c, capply, info, work, rwork)
CLA_GBRCOND_C computes the infinity norm condition number of op(A)*inv(diag(c)) for general banded ma...
subroutine clacn2(n, v, x, est, kase, isave)
CLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
logical function lsame(ca, cb)
LSAME