144 SUBROUTINE sgeequb( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
152 INTEGER INFO, LDA, M, N
153 REAL AMAX, COLCND, ROWCND
156 REAL A( LDA, * ), C( * ), R( * )
163 parameter( one = 1.0e+0, zero = 0.0e+0 )
167 REAL BIGNUM, RCMAX, RCMIN, SMLNUM, RADIX, LOGRDX
177 INTRINSIC abs, max, min, log
186 ELSE IF( n.LT.0 )
THEN
188 ELSE IF( lda.LT.max( 1, m ) )
THEN
192 CALL xerbla(
'SGEEQUB', -info )
198 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
207 smlnum = slamch(
'S' )
208 bignum = one / smlnum
209 radix = slamch(
'B' )
210 logrdx = log( radix )
222 r( i ) = max( r( i ), abs( a( i, j ) ) )
226 IF( r( i ).GT.zero )
THEN
227 r( i ) = radix**int( log( r( i ) ) / logrdx )
236 rcmax = max( rcmax, r( i ) )
237 rcmin = min( rcmin, r( i ) )
241 IF( rcmin.EQ.zero )
THEN
246 IF( r( i ).EQ.zero )
THEN
256 r( i ) = one / min( max( r( i ), smlnum ), bignum )
261 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
275 c( j ) = max( c( j ), abs( a( i, j ) )*r( i ) )
277 IF( c( j ).GT.zero )
THEN
278 c( j ) = radix**int( log( c( j ) ) / logrdx )
287 rcmin = min( rcmin, c( j ) )
288 rcmax = max( rcmax, c( j ) )
291 IF( rcmin.EQ.zero )
THEN
296 IF( c( j ).EQ.zero )
THEN
306 c( j ) = one / min( max( c( j ), smlnum ), bignum )
311 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
subroutine xerbla(srname, info)
subroutine sgeequb(m, n, a, lda, r, c, rowcnd, colcnd, amax, info)
SGEEQUB