145 SUBROUTINE zgeequb( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
153 INTEGER INFO, LDA, M, N
154 DOUBLE PRECISION AMAX, COLCND, ROWCND
157 DOUBLE PRECISION C( * ), R( * )
158 COMPLEX*16 A( LDA, * )
164 DOUBLE PRECISION ONE, ZERO
165 parameter( one = 1.0d+0, zero = 0.0d+0 )
169 DOUBLE PRECISION BIGNUM, RCMAX, RCMIN, SMLNUM, RADIX, LOGRDX
173 DOUBLE PRECISION DLAMCH
180 INTRINSIC abs, max, min, log, dble, dimag
183 DOUBLE PRECISION CABS1
186 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
195 ELSE IF( n.LT.0 )
THEN
197 ELSE IF( lda.LT.max( 1, m ) )
THEN
201 CALL xerbla(
'ZGEEQUB', -info )
207 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
216 smlnum = dlamch(
'S' )
217 bignum = one / smlnum
218 radix = dlamch(
'B' )
219 logrdx = log( radix )
231 r( i ) = max( r( i ), cabs1( a( i, j ) ) )
235 IF( r( i ).GT.zero )
THEN
236 r( i ) = radix**int( log(r( i ) ) / logrdx )
245 rcmax = max( rcmax, r( i ) )
246 rcmin = min( rcmin, r( i ) )
250 IF( rcmin.EQ.zero )
THEN
255 IF( r( i ).EQ.zero )
THEN
265 r( i ) = one / min( max( r( i ), smlnum ), bignum )
270 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
284 c( j ) = max( c( j ), cabs1( a( i, j ) )*r( i ) )
286 IF( c( j ).GT.zero )
THEN
287 c( j ) = radix**int( log( c( j ) ) / logrdx )
296 rcmin = min( rcmin, c( j ) )
297 rcmax = max( rcmax, c( j ) )
300 IF( rcmin.EQ.zero )
THEN
305 IF( c( j ).EQ.zero )
THEN
315 c( j ) = one / min( max( c( j ), smlnum ), bignum )
320 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
subroutine xerbla(srname, info)
subroutine zgeequb(m, n, a, lda, r, c, rowcnd, colcnd, amax, info)
ZGEEQUB