117 SUBROUTINE dpoequb( N, A, LDA, S, SCOND, AMAX, INFO )
125 DOUBLE PRECISION AMAX, SCOND
128 DOUBLE PRECISION A( LDA, * ), S( * )
134 DOUBLE PRECISION ZERO, ONE
135 parameter( zero = 0.0d+0, one = 1.0d+0 )
139 DOUBLE PRECISION SMIN, BASE, TMP
142 DOUBLE PRECISION DLAMCH
149 INTRINSIC max, min, sqrt, log, int
160 ELSE IF( lda.LT.max( 1, n ) )
THEN
164 CALL xerbla(
'DPOEQUB', -info )
177 tmp = -0.5d+0 / log( base )
186 smin = min( smin, s( i ) )
187 amax = max( amax, s( i ) )
190 IF( smin.LE.zero )
THEN
195 IF( s( i ).LE.zero )
THEN
206 s( i ) = base ** int( tmp * log( s( i ) ) )
211 scond = sqrt( smin ) / sqrt( amax )
subroutine xerbla(srname, info)
subroutine dpoequb(n, a, lda, s, scond, amax, info)
DPOEQUB