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
169 DOUBLE PRECISION DLAMCH
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
212 smlnum = dlamch(
'S' )
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 )
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine zgeequ(M, N, A, LDA, R, C, ROWCND, COLCND, AMAX, INFO)
ZGEEQU