159 SUBROUTINE cgbequb( M, N, KL, KU, AB, LDAB, R, C, ROWCND, COLCND,
167 INTEGER INFO, KL, KU, LDAB, M, N
168 REAL AMAX, COLCND, ROWCND
172 COMPLEX AB( LDAB, * )
179 parameter( one = 1.0e+0, zero = 0.0e+0 )
183 REAL BIGNUM, RCMAX, RCMIN, SMLNUM, RADIX,
195 INTRINSIC abs, max, min, log, real, aimag
201 cabs1( zdum ) = abs( real( zdum ) ) + abs( aimag( zdum ) )
210 ELSE IF( n.LT.0 )
THEN
212 ELSE IF( kl.LT.0 )
THEN
214 ELSE IF( ku.LT.0 )
THEN
216 ELSE IF( ldab.LT.kl+ku+1 )
THEN
220 CALL xerbla(
'CGBEQUB', -info )
226 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
235 smlnum = slamch(
'S' )
236 bignum = one / smlnum
237 radix = slamch(
'B' )
250 DO 20 i = max( j-ku, 1 ), min( j+kl, m )
251 r( i ) = max( r( i ), cabs1( ab( kd+i-j, j ) ) )
255 IF( r( i ).GT.zero )
THEN
256 r( i ) = radix**int( log( r( i ) ) / logrdx )
265 rcmax = max( rcmax, r( i ) )
266 rcmin = min( rcmin, r( i ) )
270 IF( rcmin.EQ.zero )
THEN
275 IF( r( i ).EQ.zero )
THEN
285 r( i ) = one / min( max( r( i ), smlnum ), bignum )
290 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
303 DO 80 i = max( j-ku, 1 ), min( j+kl, m )
304 c( j ) = max( c( j ), cabs1( ab( kd+i-j, j ) )*r( i ) )
306 IF( c( j ).GT.zero )
THEN
307 c( j ) = radix**int( log( c( j ) ) / logrdx )
316 rcmin = min( rcmin, c( j ) )
317 rcmax = max( rcmax, c( j ) )
320 IF( rcmin.EQ.zero )
THEN
325 IF( c( j ).EQ.zero )
THEN
335 c( j ) = one / min( max( c( j ), smlnum ), bignum )
340 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
subroutine xerbla(srname, info)
subroutine cgbequb(m, n, kl, ku, ab, ldab, r, c, rowcnd, colcnd, amax, info)
CGBEQUB