157 SUBROUTINE slaqgb( M, N, KL, KU, AB, LDAB, R, C, ROWCND, COLCND,
166 INTEGER KL, KU, LDAB, M, N
167 REAL AMAX, COLCND, ROWCND
170 REAL AB( LDAB, * ), C( * ), R( * )
177 parameter( one = 1.0e+0, thresh = 0.1e+0 )
181 REAL CJ, LARGE, SMALL
194 IF( m.LE.0 .OR. n.LE.0 )
THEN
201 small = slamch(
'Safe minimum' ) / slamch(
'Precision' )
204 IF( rowcnd.GE.thresh .AND. amax.GE.small .AND. amax.LE.large )
209 IF( colcnd.GE.thresh )
THEN
220 DO 10 i = max( 1, j-ku ), min( m, j+kl )
221 ab( ku+1+i-j, j ) = cj*ab( ku+1+i-j, j )
226 ELSE IF( colcnd.GE.thresh )
THEN
231 DO 30 i = max( 1, j-ku ), min( m, j+kl )
232 ab( ku+1+i-j, j ) = r( i )*ab( ku+1+i-j, j )
242 DO 50 i = max( 1, j-ku ), min( m, j+kl )
243 ab( ku+1+i-j, j ) = cj*r( i )*ab( ku+1+i-j, j )
subroutine slaqgb(m, n, kl, ku, ab, ldab, r, c, rowcnd, colcnd, amax, equed)
SLAQGB scales a general band matrix, using row and column scaling factors computed by sgbequ.