154 SUBROUTINE cgbequ( M, N, KL, KU, AB, LDAB, R, C, ROWCND, COLCND,
163 INTEGER info, kl, ku, ldab, m, n
164 REAL amax, colcnd, rowcnd
168 COMPLEX ab( ldab, * )
175 parameter( one = 1.0e+0, zero = 0.0e+0 )
179 REAL bignum, rcmax, rcmin, smlnum
190 INTRINSIC abs, aimag, max, min, real
196 cabs1( zdum ) = abs(
REAL( ZDUM ) ) + abs( aimag( 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(
'CGBEQU', -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 )