136 SUBROUTINE zgeequ( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
144 INTEGER INFO, LDA, M, N
145 DOUBLE PRECISION AMAX, COLCND, ROWCND
148 DOUBLE PRECISION C( * ), R( * )
149 COMPLEX*16 A( LDA, * )
155 DOUBLE PRECISION ONE, ZERO
156 parameter( one = 1.0d+0, zero = 0.0d+0 )
160 DOUBLE PRECISION BIGNUM, RCMAX, RCMIN, SMLNUM
164 DOUBLE PRECISION DLAMCH
171 INTRINSIC abs, dble, dimag, max, min
174 DOUBLE PRECISION CABS1
177 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
186 ELSE IF( n.LT.0 )
THEN
188 ELSE IF( lda.LT.max( 1, m ) )
THEN
192 CALL xerbla(
'ZGEEQU', -info )
198 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
207 smlnum = dlamch(
'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 zgeequ(m, n, a, lda, r, c, rowcnd, colcnd, amax, info)
ZGEEQU