137 SUBROUTINE dgeequ( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
145 INTEGER INFO, LDA, M, N
146 DOUBLE PRECISION AMAX, COLCND, ROWCND
149 DOUBLE PRECISION A( LDA, * ), C( * ), R( * )
155 DOUBLE PRECISION ONE, ZERO
156 parameter( one = 1.0d+0, zero = 0.0d+0 )
160 DOUBLE PRECISION BIGNUM, RCMAX, RCMIN, SMLNUM
163 DOUBLE PRECISION DLAMCH
170 INTRINSIC abs, max, min
179 ELSE IF( n.LT.0 )
THEN
181 ELSE IF( lda.LT.max( 1, m ) )
THEN
185 CALL xerbla(
'DGEEQU', -info )
191 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
200 smlnum = dlamch(
'S' )
201 bignum = one / smlnum
213 r( i ) = max( r( i ), abs( a( i, j ) ) )
222 rcmax = max( rcmax, r( i ) )
223 rcmin = min( rcmin, r( i ) )
227 IF( rcmin.EQ.zero )
THEN
232 IF( r( i ).EQ.zero )
THEN
242 r( i ) = one / min( max( r( i ), smlnum ), bignum )
247 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
261 c( j ) = max( c( j ), abs( a( i, j ) )*r( i ) )
270 rcmin = min( rcmin, c( j ) )
271 rcmax = max( rcmax, c( j ) )
274 IF( rcmin.EQ.zero )
THEN
279 IF( c( j ).EQ.zero )
THEN
289 c( j ) = one / min( max( c( j ), smlnum ), bignum )
294 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
subroutine xerbla(srname, info)
subroutine dgeequ(m, n, a, lda, r, c, rowcnd, colcnd, amax, info)
DGEEQU