139 SUBROUTINE dgeequ( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
148 INTEGER info, lda, m, n
149 DOUBLE PRECISION amax, colcnd, rowcnd
152 DOUBLE PRECISION a( lda, * ), c( * ), r( * )
158 DOUBLE PRECISION one, zero
159 parameter( one = 1.0d+0, zero = 0.0d+0 )
163 DOUBLE PRECISION bignum, rcmax, rcmin, smlnum
173 INTRINSIC abs, max, min
182 ELSE IF( n.LT.0 )
THEN
184 ELSE IF( lda.LT.max( 1, m ) )
THEN
188 CALL
xerbla(
'DGEEQU', -info )
194 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
204 bignum = one / smlnum
216 r( i ) = max( r( i ), abs( a( i, j ) ) )
225 rcmax = max( rcmax, r( i ) )
226 rcmin = min( rcmin, r( i ) )
230 IF( rcmin.EQ.zero )
THEN
235 IF( r( i ).EQ.zero )
THEN
245 r( i ) = one / min( max( r( i ), smlnum ), bignum )
250 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
264 c( j ) = max( c( j ), abs( a( i, j ) )*r( i ) )
273 rcmin = min( rcmin, c( j ) )
274 rcmax = max( rcmax, c( j ) )
277 IF( rcmin.EQ.zero )
THEN
282 IF( c( j ).EQ.zero )
THEN
292 c( j ) = one / min( max( c( j ), smlnum ), bignum )
297 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )