161 DOUBLE PRECISION FUNCTION zla_gbrcond_c( TRANS, N, KL, KU, AB,
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 )
subroutine zgbtrs(TRANS, N, KL, KU, NRHS, AB, LDAB, IPIV, B, LDB, INFO)
ZGBTRS
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...
double precision function zla_gbrcond_c(TRANS, N, KL, KU, AB, LDAB, AFB, LDAFB, IPIV, C, CAPPLY, INFO, WORK, RWORK)
ZLA_GBRCOND_C computes the infinity norm condition number of op(A)*inv(diag(c)) for general banded ma...