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