142 SUBROUTINE slaqge( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
153 REAL AMAX, COLCND, ROWCND
156 REAL A( lda, * ), C( * ), R( * )
163 parameter ( one = 1.0e+0, thresh = 0.1e+0 )
167 REAL CJ, LARGE, SMALL
177 IF( m.LE.0 .OR. n.LE.0 )
THEN
184 small = slamch(
'Safe minimum' ) / slamch(
'Precision' )
187 IF( rowcnd.GE.thresh .AND. amax.GE.small .AND. amax.LE.large )
192 IF( colcnd.GE.thresh )
THEN
204 a( i, j ) = cj*a( i, j )
209 ELSE IF( colcnd.GE.thresh )
THEN
215 a( i, j ) = r( i )*a( i, j )
226 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...