159 SUBROUTINE zgbequb( M, N, KL, KU, AB, LDAB, R, C, ROWCND, COLCND,
167 INTEGER INFO, KL, KU, LDAB, M, N
168 DOUBLE PRECISION AMAX, COLCND, ROWCND
171 DOUBLE PRECISION C( * ), R( * )
172 COMPLEX*16 AB( LDAB, * )
178 DOUBLE PRECISION ONE, ZERO
179 parameter( one = 1.0d+0, zero = 0.0d+0 )
183 DOUBLE PRECISION BIGNUM, RCMAX, RCMIN, SMLNUM, RADIX,
188 DOUBLE PRECISION DLAMCH
195 INTRINSIC abs, max, min, log, real, dimag
198 DOUBLE PRECISION CABS1
201 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( 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(
'ZGBEQUB', -info )
226 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
235 smlnum = dlamch(
'S' )
236 bignum = one / smlnum
237 radix = dlamch(
'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 zgbequb(m, n, kl, ku, ab, ldab, r, c, rowcnd, colcnd, amax, info)
ZGBEQUB