139 SUBROUTINE zlaqge( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
149 DOUBLE PRECISION AMAX, COLCND, ROWCND
152 DOUBLE PRECISION C( * ), R( * )
153 COMPLEX*16 A( LDA, * )
159 DOUBLE PRECISION ONE, THRESH
160 parameter( one = 1.0d+0, thresh = 0.1d+0 )
164 DOUBLE PRECISION CJ, LARGE, SMALL
167 DOUBLE PRECISION DLAMCH
174 IF( m.LE.0 .OR. n.LE.0 )
THEN
181 small = dlamch(
'Safe minimum' ) / dlamch(
'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 zlaqge(m, n, a, lda, r, c, rowcnd, colcnd, amax, equed)
ZLAQGE scales a general rectangular matrix, using row and column scaling factors computed by sgeequ.