115 SUBROUTINE dpoequb( N, A, LDA, S, SCOND, AMAX, INFO )
123 DOUBLE PRECISION AMAX, SCOND
126 DOUBLE PRECISION A( LDA, * ), S( * )
132 DOUBLE PRECISION ZERO, ONE
133 parameter( zero = 0.0d+0, one = 1.0d+0 )
137 DOUBLE PRECISION SMIN, BASE, TMP
140 DOUBLE PRECISION DLAMCH
147 INTRINSIC max, min, sqrt, log, int
158 ELSE IF( lda.LT.max( 1, n ) )
THEN
162 CALL xerbla(
'DPOEQUB', -info )
175 tmp = -0.5d+0 / log( base )
184 smin = min( smin, s( i ) )
185 amax = max( amax, s( i ) )
188 IF( smin.LE.zero )
THEN
193 IF( s( i ).LE.zero )
THEN
204 s( i ) = base ** int( tmp * log( s( i ) ) )
209 scond = sqrt( smin ) / sqrt( amax )
subroutine dpoequb(n, a, lda, s, scond, amax, info)
DPOEQUB