161 SUBROUTINE zgbequb( M, N, KL, KU, AB, LDAB, R, C, ROWCND, COLCND,
170 INTEGER INFO, KL, KU, LDAB, M, N
171 DOUBLE PRECISION AMAX, COLCND, ROWCND
174 DOUBLE PRECISION C( * ), R( * )
175 COMPLEX*16 AB( ldab, * )
181 DOUBLE PRECISION ONE, ZERO
182 parameter ( one = 1.0d+0, zero = 0.0d+0 )
186 DOUBLE PRECISION BIGNUM, RCMAX, RCMIN, SMLNUM, RADIX,
191 DOUBLE PRECISION DLAMCH
198 INTRINSIC abs, max, min, log,
REAL, DIMAG
201 DOUBLE PRECISION CABS1
204 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
213 ELSE IF( n.LT.0 )
THEN
215 ELSE IF( kl.LT.0 )
THEN
217 ELSE IF( ku.LT.0 )
THEN
219 ELSE IF( ldab.LT.kl+ku+1 )
THEN
223 CALL xerbla(
'ZGBEQUB', -info )
229 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
238 smlnum = dlamch(
'S' )
239 bignum = one / smlnum
240 radix = dlamch(
'B' )
253 DO 20 i = max( j-ku, 1 ), min( j+kl, m )
254 r( i ) = max( r( i ), cabs1( ab( kd+i-j, j ) ) )
258 IF( r( i ).GT.zero )
THEN
259 r( i ) = radix**int( log( r( i ) ) / logrdx )
268 rcmax = max( rcmax, r( i ) )
269 rcmin = min( rcmin, r( i ) )
273 IF( rcmin.EQ.zero )
THEN
278 IF( r( i ).EQ.zero )
THEN
288 r( i ) = one / min( max( r( i ), smlnum ), bignum )
293 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
306 DO 80 i = max( j-ku, 1 ), min( j+kl, m )
307 c( j ) = max( c( j ), cabs1( ab( kd+i-j, j ) )*r( i ) )
309 IF( c( j ).GT.zero )
THEN
310 c( j ) = radix**int( log( c( j ) ) / logrdx )
319 rcmin = min( rcmin, c( j ) )
320 rcmax = max( rcmax, c( j ) )
323 IF( rcmin.EQ.zero )
THEN
328 IF( c( j ).EQ.zero )
THEN
338 c( j ) = one / min( max( c( j ), smlnum ), bignum )
343 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine zgbequb(M, N, KL, KU, AB, LDAB, R, C, ROWCND, COLCND, AMAX, INFO)
ZGBEQUB