151 SUBROUTINE sgbequ( M, N, KL, KU, AB, LDAB, R, C, ROWCND, COLCND,
159 INTEGER INFO, KL, KU, LDAB, M, N
160 REAL AMAX, COLCND, ROWCND
163 REAL AB( LDAB, * ), C( * ), R( * )
170 parameter( one = 1.0e+0, zero = 0.0e+0 )
174 REAL BIGNUM, RCMAX, RCMIN, SMLNUM
184 INTRINSIC abs, max, min
193 ELSE IF( n.LT.0 )
THEN
195 ELSE IF( kl.LT.0 )
THEN
197 ELSE IF( ku.LT.0 )
THEN
199 ELSE IF( ldab.LT.kl+ku+1 )
THEN
203 CALL xerbla(
'SGBEQU', -info )
209 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
218 smlnum = slamch(
'S' )
219 bignum = one / smlnum
231 DO 20 i = max( j-ku, 1 ), min( j+kl, m )
232 r( i ) = max( r( i ), abs( ab( kd+i-j, j ) ) )
241 rcmax = max( rcmax, r( i ) )
242 rcmin = min( rcmin, r( i ) )
246 IF( rcmin.EQ.zero )
THEN
251 IF( r( i ).EQ.zero )
THEN
261 r( i ) = one / min( max( r( i ), smlnum ), bignum )
266 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
280 DO 80 i = max( j-ku, 1 ), min( j+kl, m )
281 c( j ) = max( c( j ), abs( ab( kd+i-j, j ) )*r( i ) )
290 rcmin = min( rcmin, c( j ) )
291 rcmax = max( rcmax, c( j ) )
294 IF( rcmin.EQ.zero )
THEN
299 IF( c( j ).EQ.zero )
THEN
309 c( j ) = one / min( max( c( j ), smlnum ), bignum )
314 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
subroutine xerbla(srname, info)
subroutine sgbequ(m, n, kl, ku, ab, ldab, r, c, rowcnd, colcnd, amax, info)
SGBEQU