136 SUBROUTINE cgeequ( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
144 INTEGER INFO, LDA, M, N
145 REAL AMAX, COLCND, ROWCND
156 parameter( one = 1.0e+0, zero = 0.0e+0 )
160 REAL BIGNUM, RCMAX, RCMIN, SMLNUM
171 INTRINSIC abs, aimag, max, min, real
177 cabs1( zdum ) = abs( real( zdum ) ) + abs( aimag( zdum ) )
186 ELSE IF( n.LT.0 )
THEN
188 ELSE IF( lda.LT.max( 1, m ) )
THEN
192 CALL xerbla(
'CGEEQU', -info )
198 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
207 smlnum = slamch(
'S' )
208 bignum = one / smlnum
220 r( i ) = max( r( i ), cabs1( a( i, j ) ) )
229 rcmax = max( rcmax, r( i ) )
230 rcmin = min( rcmin, r( i ) )
234 IF( rcmin.EQ.zero )
THEN
239 IF( r( i ).EQ.zero )
THEN
249 r( i ) = one / min( max( r( i ), smlnum ), bignum )
254 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
268 c( j ) = max( c( j ), cabs1( a( i, j ) )*r( i ) )
277 rcmin = min( rcmin, c( j ) )
278 rcmax = max( rcmax, c( j ) )
281 IF( rcmin.EQ.zero )
THEN
286 IF( c( j ).EQ.zero )
THEN
296 c( j ) = one / min( max( c( j ), smlnum ), bignum )
301 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
subroutine cgeequ(m, n, a, lda, r, c, rowcnd, colcnd, amax, info)
CGEEQU