157 SUBROUTINE zgbequb( M, N, KL, KU, AB, LDAB, R, C, ROWCND,
166 INTEGER INFO, KL, KU, LDAB, M, N
167 DOUBLE PRECISION AMAX, COLCND, ROWCND
170 DOUBLE PRECISION C( * ), R( * )
171 COMPLEX*16 AB( LDAB, * )
177 DOUBLE PRECISION ONE, ZERO
178 PARAMETER ( ONE = 1.0d+0, zero = 0.0d+0 )
182 DOUBLE PRECISION BIGNUM, RCMAX, RCMIN, SMLNUM, RADIX,
187 DOUBLE PRECISION DLAMCH
194 INTRINSIC abs, max, min, log, real, dimag
197 DOUBLE PRECISION CABS1
200 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
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.kl+ku+1 )
THEN
219 CALL xerbla(
'ZGBEQUB', -info )
225 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
234 smlnum = dlamch(
'S' )
235 bignum = one / smlnum
236 radix = dlamch(
'B' )
249 DO 20 i = max( j-ku, 1 ), min( j+kl, m )
250 r( i ) = max( r( i ), cabs1( ab( kd+i-j, j ) ) )
254 IF( r( i ).GT.zero )
THEN
255 r( i ) = radix**int( log( r( i ) ) / logrdx )
264 rcmax = max( rcmax, r( i ) )
265 rcmin = min( rcmin, r( i ) )
269 IF( rcmin.EQ.zero )
THEN
274 IF( r( i ).EQ.zero )
THEN
284 r( i ) = one / min( max( r( i ), smlnum ), bignum )
289 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
302 DO 80 i = max( j-ku, 1 ), min( j+kl, m )
303 c( j ) = max( c( j ), cabs1( ab( kd+i-j, j ) )*r( i ) )
305 IF( c( j ).GT.zero )
THEN
306 c( j ) = radix**int( log( c( j ) ) / logrdx )
315 rcmin = min( rcmin, c( j ) )
316 rcmax = max( rcmax, c( j ) )
319 IF( rcmin.EQ.zero )
THEN
324 IF( c( j ).EQ.zero )
THEN
334 c( j ) = one / min( max( c( j ), smlnum ), bignum )
339 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
subroutine zgbequb(m, n, kl, ku, ab, ldab, r, c, rowcnd, colcnd, amax, info)
ZGBEQUB