149 SUBROUTINE dgbequ( M, N, KL, KU, AB, LDAB, R, C, ROWCND,
158 INTEGER INFO, KL, KU, LDAB, M, N
159 DOUBLE PRECISION AMAX, COLCND, ROWCND
162 DOUBLE PRECISION AB( LDAB, * ), C( * ), R( * )
168 DOUBLE PRECISION ONE, ZERO
169 PARAMETER ( ONE = 1.0d+0, zero = 0.0d+0 )
173 DOUBLE PRECISION BIGNUM, RCMAX, RCMIN, SMLNUM
176 DOUBLE PRECISION DLAMCH
183 INTRINSIC abs, max, min
192 ELSE IF( n.LT.0 )
THEN
194 ELSE IF( kl.LT.0 )
THEN
196 ELSE IF( ku.LT.0 )
THEN
198 ELSE IF( ldab.LT.kl+ku+1 )
THEN
202 CALL xerbla(
'DGBEQU', -info )
208 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
217 smlnum = dlamch(
'S' )
218 bignum = one / smlnum
230 DO 20 i = max( j-ku, 1 ), min( j+kl, m )
231 r( i ) = max( r( i ), abs( ab( kd+i-j, j ) ) )
240 rcmax = max( rcmax, r( i ) )
241 rcmin = min( rcmin, r( i ) )
245 IF( rcmin.EQ.zero )
THEN
250 IF( r( i ).EQ.zero )
THEN
260 r( i ) = one / min( max( r( i ), smlnum ), bignum )
265 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
279 DO 80 i = max( j-ku, 1 ), min( j+kl, m )
280 c( j ) = max( c( j ), abs( ab( kd+i-j, j ) )*r( i ) )
289 rcmin = min( rcmin, c( j ) )
290 rcmax = max( rcmax, c( j ) )
293 IF( rcmin.EQ.zero )
THEN
298 IF( c( j ).EQ.zero )
THEN
308 c( j ) = one / min( max( c( j ), smlnum ), bignum )
313 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
subroutine dgbequ(m, n, kl, ku, ab, ldab, r, c, rowcnd, colcnd, amax, info)
DGBEQU