138 SUBROUTINE cgeequ( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX,
146 INTEGER INFO, LDA, M, N
147 REAL AMAX, COLCND, ROWCND
158 parameter( one = 1.0e+0, zero = 0.0e+0 )
162 REAL BIGNUM, RCMAX, RCMIN, SMLNUM
173 INTRINSIC abs, aimag, max, min, real
179 cabs1( zdum ) = abs( real( zdum ) ) + abs( aimag( zdum ) )
188 ELSE IF( n.LT.0 )
THEN
190 ELSE IF( lda.LT.max( 1, m ) )
THEN
194 CALL xerbla(
'CGEEQU', -info )
200 IF( m.EQ.0 .OR. n.EQ.0 )
THEN
209 smlnum = slamch(
'S' )
210 bignum = one / smlnum
222 r( i ) = max( r( i ), cabs1( a( i, j ) ) )
231 rcmax = max( rcmax, r( i ) )
232 rcmin = min( rcmin, r( i ) )
236 IF( rcmin.EQ.zero )
THEN
241 IF( r( i ).EQ.zero )
THEN
251 r( i ) = one / min( max( r( i ), smlnum ), bignum )
256 rowcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
270 c( j ) = max( c( j ), cabs1( a( i, j ) )*r( i ) )
279 rcmin = min( rcmin, c( j ) )
280 rcmax = max( rcmax, c( j ) )
283 IF( rcmin.EQ.zero )
THEN
288 IF( c( j ).EQ.zero )
THEN
298 c( j ) = one / min( max( c( j ), smlnum ), bignum )
303 colcnd = max( rcmin, smlnum ) / min( rcmax, bignum )
subroutine xerbla(srname, info)
subroutine cgeequ(m, n, a, lda, r, c, rowcnd, colcnd, amax, info)
CGEEQU