138 SUBROUTINE zgeequ( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
146 INTEGER INFO, LDA, M, N
147 DOUBLE PRECISION AMAX, COLCND, ROWCND
150 DOUBLE PRECISION C( * ), R( * )
151 COMPLEX*16 A( LDA, * )
157 DOUBLE PRECISION ONE, ZERO
158 parameter( one = 1.0d+0, zero = 0.0d+0 )
162 DOUBLE PRECISION BIGNUM, RCMAX, RCMIN, SMLNUM
166 DOUBLE PRECISION DLAMCH
173 INTRINSIC abs, dble, dimag, max, min
176 DOUBLE PRECISION CABS1
179 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
188 ELSE IF( n.LT.0 )
THEN
190 ELSE IF( lda.LT.max( 1, m ) )
THEN
194 CALL xerbla(
'ZGEEQU', -info )
200 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
209 smlnum = dlamch(
'S' )
210 bignum = one / smlnum
222 r( i ) = max( r( i ), cabs1( a( i, j ) ) )
231 rcmax = max( rcmax, r( i ) )
232 rcmin = min( rcmin, r( i ) )
236 IF( rcmin.EQ.zero )
THEN
241 IF( r( i ).EQ.zero )
THEN
251 r( i ) = one / min( max( r( i ), smlnum ), bignum )
256 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
270 c( j ) = max( c( j ), cabs1( a( i, j ) )*r( i ) )
279 rcmin = min( rcmin, c( j ) )
280 rcmax = max( rcmax, c( j ) )
283 IF( rcmin.EQ.zero )
THEN
288 IF( c( j ).EQ.zero )
THEN
298 c( j ) = one / min( max( c( j ), smlnum ), bignum )
303 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
subroutine xerbla(srname, info)
subroutine zgeequ(m, n, a, lda, r, c, rowcnd, colcnd, amax, info)
ZGEEQU