140 SUBROUTINE zgeequ( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
149 INTEGER info, lda, m, n
150 DOUBLE PRECISION amax, colcnd, rowcnd
153 DOUBLE PRECISION c( * ), r( * )
154 COMPLEX*16 a( lda, * )
160 DOUBLE PRECISION one, zero
161 parameter( one = 1.0d+0, zero = 0.0d+0 )
165 DOUBLE PRECISION bignum, rcmax, rcmin, smlnum
176 INTRINSIC abs, dble, dimag, max, min
179 DOUBLE PRECISION cabs1
182 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
191 ELSE IF( n.LT.0 )
THEN
193 ELSE IF( lda.LT.max( 1, m ) )
THEN
197 CALL
xerbla(
'ZGEEQU', -info )
203 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
213 bignum = one / smlnum
225 r( i ) = max( r( i ), cabs1( a( i, j ) ) )
234 rcmax = max( rcmax, r( i ) )
235 rcmin = min( rcmin, r( i ) )
239 IF( rcmin.EQ.zero )
THEN
244 IF( r( i ).EQ.zero )
THEN
254 r( i ) = one / min( max( r( i ), smlnum ), bignum )
259 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
273 c( j ) = max( c( j ), cabs1( a( i, j ) )*r( i ) )
282 rcmin = min( rcmin, c( j ) )
283 rcmax = max( rcmax, c( j ) )
286 IF( rcmin.EQ.zero )
THEN
291 IF( c( j ).EQ.zero )
THEN
301 c( j ) = one / min( max( c( j ), smlnum ), bignum )
306 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )