154 SUBROUTINE zgbequ( M, N, KL, KU, AB, LDAB, R, C, ROWCND, COLCND,
163 INTEGER info, kl, ku, ldab, m, n
164 DOUBLE PRECISION amax, colcnd, rowcnd
167 DOUBLE PRECISION c( * ), r( * )
168 COMPLEX*16 ab( ldab, * )
174 DOUBLE PRECISION one, zero
175 parameter( one = 1.0d+0, zero = 0.0d+0 )
179 DOUBLE PRECISION bignum, rcmax, rcmin, smlnum
190 INTRINSIC abs, dble, dimag, max, min
193 DOUBLE PRECISION cabs1
196 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
205 ELSE IF( n.LT.0 )
THEN
207 ELSE IF( kl.LT.0 )
THEN
209 ELSE IF( ku.LT.0 )
THEN
211 ELSE IF( ldab.LT.kl+ku+1 )
THEN
215 CALL
xerbla(
'ZGBEQU', -info )
221 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
231 bignum = one / smlnum
243 DO 20 i = max( j-ku, 1 ), min( j+kl, m )
244 r( i ) = max( r( i ), cabs1( ab( kd+i-j, j ) ) )
253 rcmax = max( rcmax, r( i ) )
254 rcmin = min( rcmin, r( i ) )
258 IF( rcmin.EQ.zero )
THEN
263 IF( r( i ).EQ.zero )
THEN
273 r( i ) = one / min( max( r( i ), smlnum ), bignum )
278 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
292 DO 80 i = max( j-ku, 1 ), min( j+kl, m )
293 c( j ) = max( c( j ), cabs1( ab( kd+i-j, j ) )*r( i ) )
302 rcmin = min( rcmin, c( j ) )
303 rcmax = max( rcmax, c( j ) )
306 IF( rcmin.EQ.zero )
THEN
311 IF( c( j ).EQ.zero )
THEN
321 c( j ) = one / min( max( c( j ), smlnum ), bignum )
326 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )