158 SUBROUTINE sgbequb( M, N, KL, KU, AB, LDAB, R, C, ROWCND, COLCND,
166 INTEGER INFO, KL, KU, LDAB, M, N
167 REAL AMAX, COLCND, ROWCND
170 REAL AB( LDAB, * ), C( * ), R( * )
177 parameter( one = 1.0e+0, zero = 0.0e+0 )
181 REAL BIGNUM, RCMAX, RCMIN, SMLNUM, RADIX, LOGRDX
191 INTRINSIC abs, max, min, log
200 ELSE IF( n.LT.0 )
THEN
202 ELSE IF( kl.LT.0 )
THEN
204 ELSE IF( ku.LT.0 )
THEN
206 ELSE IF( ldab.LT.kl+ku+1 )
THEN
210 CALL xerbla(
'SGBEQUB', -info )
216 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
225 smlnum = slamch(
'S' )
226 bignum = one / smlnum
227 radix = slamch(
'B' )
240 DO 20 i = max( j-ku, 1 ), min( j+kl, m )
241 r( i ) = max( r( i ), abs( ab( kd+i-j, j ) ) )
245 IF( r( i ).GT.zero )
THEN
246 r( i ) = radix**int( log( r( i ) ) / logrdx )
255 rcmax = max( rcmax, r( i ) )
256 rcmin = min( rcmin, r( i ) )
260 IF( rcmin.EQ.zero )
THEN
265 IF( r( i ).EQ.zero )
THEN
275 r( i ) = one / min( max( r( i ), smlnum ), bignum )
280 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
293 DO 80 i = max( j-ku, 1 ), min( j+kl, m )
294 c( j ) = max( c( j ), abs( ab( kd+i-j, j ) )*r( i ) )
296 IF( c( j ).GT.zero )
THEN
297 c( j ) = radix**int( log( c( j ) ) / logrdx )
306 rcmin = min( rcmin, c( j ) )
307 rcmax = max( rcmax, c( j ) )
310 IF( rcmin.EQ.zero )
THEN
315 IF( c( j ).EQ.zero )
THEN
325 c( j ) = one / min( max( c( j ), smlnum ), bignum )
330 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
subroutine xerbla(srname, info)
subroutine sgbequb(m, n, kl, ku, ab, ldab, r, c, rowcnd, colcnd, amax, info)
SGBEQUB