139 SUBROUTINE sgeequ( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
148 INTEGER INFO, LDA, M, N
149 REAL AMAX, COLCND, ROWCND
152 REAL A( lda, * ), C( * ), R( * )
159 parameter ( one = 1.0e+0, zero = 0.0e+0 )
163 REAL 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(
'SGEEQU', -info )
194 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
203 smlnum = slamch(
'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 xerbla(SRNAME, INFO)
XERBLA
subroutine sgeequ(M, N, A, LDA, R, C, ROWCND, COLCND, AMAX, INFO)
SGEEQU