140 SUBROUTINE slaqge( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
150 REAL AMAX, COLCND, ROWCND
153 REAL A( LDA, * ), C( * ), R( * )
160 parameter( one = 1.0e+0, thresh = 0.1e+0 )
164 REAL CJ, LARGE, SMALL
174 IF( m.LE.0 .OR. n.LE.0 )
THEN
181 small = slamch(
'Safe minimum' ) / slamch(
'Precision' )
184 IF( rowcnd.GE.thresh .AND. amax.GE.small .AND. amax.LE.large )
189 IF( colcnd.GE.thresh )
THEN
201 a( i, j ) = cj*a( i, j )
206 ELSE IF( colcnd.GE.thresh )
THEN
212 a( i, j ) = r( i )*a( i, j )
223 a( i, j ) = cj*r( i )*a( i, j )
subroutine slaqge(m, n, a, lda, r, c, rowcnd, colcnd, amax, equed)
SLAQGE scales a general rectangular matrix, using row and column scaling factors computed by sgeequ.