147 SUBROUTINE cgbcon( NORM, N, KL, KU, AB, LDAB, IPIV, ANORM, RCOND,
148 $ work, rwork, info )
157 INTEGER info, kl, ku, ldab, n
163 COMPLEX ab( ldab, * ), work( * )
170 parameter( one = 1.0e+0, zero = 0.0e+0 )
173 LOGICAL lnoti, onenrm
175 INTEGER ix, j, jp, kase, kase1, kd, lm
176 REAL ainvnm, scale, smlnum
193 INTRINSIC abs, aimag, min, real
199 cabs1( zdum ) = abs(
REAL( ZDUM ) ) + abs( aimag( zdum ) )
206 onenrm = norm.EQ.
'1' .OR.
lsame( norm,
'O' )
207 IF( .NOT.onenrm .AND. .NOT.
lsame( norm,
'I' ) )
THEN
209 ELSE IF( n.LT.0 )
THEN
211 ELSE IF( kl.LT.0 )
THEN
213 ELSE IF( ku.LT.0 )
THEN
215 ELSE IF( ldab.LT.2*kl+ku+1 )
THEN
217 ELSE IF( anorm.LT.zero )
THEN
221 CALL
xerbla(
'CGBCON', -info )
231 ELSE IF( anorm.EQ.zero )
THEN
235 smlnum =
slamch(
'Safe minimum' )
250 CALL
clacn2( n, work( n+1 ), work, ainvnm, kase, isave )
252 IF( kase.EQ.kase1 )
THEN
262 work( jp ) = work( j )
265 CALL
caxpy( lm, -t, ab( kd+1, j ), 1, work( j+1 ), 1 )
271 CALL
clatbs(
'Upper',
'No transpose',
'Non-unit', normin, n,
272 $ kl+ku, ab, ldab, work, scale, rwork, info )
277 CALL
clatbs(
'Upper',
'Conjugate transpose',
'Non-unit',
278 $ normin, n, kl+ku, ab, ldab, work, scale, rwork,
284 DO 30 j = n - 1, 1, -1
286 work( j ) = work( j ) -
cdotc( lm, ab( kd+1, j ), 1,
291 work( jp ) = work( j )
301 IF( scale.NE.one )
THEN
303 IF( scale.LT.cabs1( work( ix ) )*smlnum .OR. scale.EQ.zero )
305 CALL
csrscl( n, scale, work, 1 )
313 $ rcond = ( one / ainvnm ) / anorm