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 )