145 SUBROUTINE cgeequb( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
153 INTEGER INFO, LDA, M, N
154 REAL AMAX, COLCND, ROWCND
165 parameter( one = 1.0e+0, zero = 0.0e+0 )
169 REAL BIGNUM, RCMAX, RCMIN, SMLNUM, RADIX, LOGRDX
180 INTRINSIC abs, max, min, log, real, aimag
186 cabs1( zdum ) = abs( real( zdum ) ) + abs( aimag( zdum ) )
195 ELSE IF( n.LT.0 )
THEN
197 ELSE IF( lda.LT.max( 1, m ) )
THEN
201 CALL xerbla(
'CGEEQUB', -info )
207 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
216 smlnum = slamch(
'S' )
217 bignum = one / smlnum
218 radix = slamch(
'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 cgeequb(m, n, a, lda, r, c, rowcnd, colcnd, amax, info)
CGEEQUB