150 SUBROUTINE zgbequ( M, N, KL, KU, AB, LDAB, R, C, ROWCND,
159 INTEGER INFO, KL, KU, LDAB, M, N
160 DOUBLE PRECISION AMAX, COLCND, ROWCND
163 DOUBLE PRECISION C( * ), R( * )
164 COMPLEX*16 AB( LDAB, * )
170 DOUBLE PRECISION ONE, ZERO
171 PARAMETER ( ONE = 1.0d+0, zero = 0.0d+0 )
175 DOUBLE PRECISION BIGNUM, RCMAX, RCMIN, SMLNUM
179 DOUBLE PRECISION DLAMCH
186 INTRINSIC abs, dble, dimag, max, min
189 DOUBLE PRECISION CABS1
192 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
201 ELSE IF( n.LT.0 )
THEN
203 ELSE IF( kl.LT.0 )
THEN
205 ELSE IF( ku.LT.0 )
THEN
207 ELSE IF( ldab.LT.kl+ku+1 )
THEN
211 CALL xerbla(
'ZGBEQU', -info )
217 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
226 smlnum = dlamch(
'S' )
227 bignum = one / smlnum
239 DO 20 i = max( j-ku, 1 ), min( j+kl, m )
240 r( i ) = max( r( i ), cabs1( ab( kd+i-j, j ) ) )
249 rcmax = max( rcmax, r( i ) )
250 rcmin = min( rcmin, r( i ) )
254 IF( rcmin.EQ.zero )
THEN
259 IF( r( i ).EQ.zero )
THEN
269 r( i ) = one / min( max( r( i ), smlnum ), bignum )
274 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
288 DO 80 i = max( j-ku, 1 ), min( j+kl, m )
289 c( j ) = max( c( j ), cabs1( ab( kd+i-j, j ) )*r( i ) )
298 rcmin = min( rcmin, c( j ) )
299 rcmax = max( rcmax, c( j ) )
302 IF( rcmin.EQ.zero )
THEN
307 IF( c( j ).EQ.zero )
THEN
317 c( j ) = one / min( max( c( j ), smlnum ), bignum )
322 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
subroutine zgbequ(m, n, kl, ku, ab, ldab, r, c, rowcnd, colcnd, amax, info)
ZGBEQU