137 SUBROUTINE sgeequ( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
145 INTEGER INFO, LDA, M, N
146 REAL AMAX, COLCND, ROWCND
149 REAL A( LDA, * ), C( * ), R( * )
156 parameter( one = 1.0e+0, zero = 0.0e+0 )
160 REAL BIGNUM, RCMAX, RCMIN, SMLNUM
170 INTRINSIC abs, max, min
179 ELSE IF( n.LT.0 )
THEN
181 ELSE IF( lda.LT.max( 1, m ) )
THEN
185 CALL xerbla(
'SGEEQU', -info )
191 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
200 smlnum = slamch(
'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 sgeequ(m, n, a, lda, r, c, rowcnd, colcnd, amax, info)
SGEEQU