143 SUBROUTINE zgeequb( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
151 INTEGER INFO, LDA, M, N
152 DOUBLE PRECISION AMAX, COLCND, ROWCND
155 DOUBLE PRECISION C( * ), R( * )
156 COMPLEX*16 A( LDA, * )
162 DOUBLE PRECISION ONE, ZERO
163 parameter( one = 1.0d+0, zero = 0.0d+0 )
167 DOUBLE PRECISION BIGNUM, RCMAX, RCMIN, SMLNUM, RADIX, LOGRDX
171 DOUBLE PRECISION DLAMCH
178 INTRINSIC abs, max, min, log, dble, dimag
181 DOUBLE PRECISION CABS1
184 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
193 ELSE IF( n.LT.0 )
THEN
195 ELSE IF( lda.LT.max( 1, m ) )
THEN
199 CALL xerbla(
'ZGEEQUB', -info )
205 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
214 smlnum = dlamch(
'S' )
215 bignum = one / smlnum
216 radix = dlamch(
'B' )
217 logrdx = log( radix )
229 r( i ) = max( r( i ), cabs1( a( i, j ) ) )
233 IF( r( i ).GT.zero )
THEN
234 r( i ) = radix**int( log(r( i ) ) / logrdx )
243 rcmax = max( rcmax, r( i ) )
244 rcmin = min( rcmin, r( i ) )
248 IF( rcmin.EQ.zero )
THEN
253 IF( r( i ).EQ.zero )
THEN
263 r( i ) = one / min( max( r( i ), smlnum ), bignum )
268 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
282 c( j ) = max( c( j ), cabs1( a( i, j ) )*r( i ) )
284 IF( c( j ).GT.zero )
THEN
285 c( j ) = radix**int( log( c( j ) ) / logrdx )
294 rcmin = min( rcmin, c( j ) )
295 rcmax = max( rcmax, c( j ) )
298 IF( rcmin.EQ.zero )
THEN
303 IF( c( j ).EQ.zero )
THEN
313 c( j ) = one / min( max( c( j ), smlnum ), bignum )
318 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
subroutine zgeequb(m, n, a, lda, r, c, rowcnd, colcnd, amax, info)
ZGEEQUB