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
183 DOUBLE PRECISION DLAMCH
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
230 smlnum = dlamch(
'S' )
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 )
subroutine zgbequ(M, N, KL, KU, AB, LDAB, R, C, ROWCND, COLCND, AMAX, INFO)
ZGBEQU
subroutine xerbla(SRNAME, INFO)
XERBLA