113 SUBROUTINE spoequb( N, A, LDA, S, SCOND, AMAX, INFO )
125 REAL a( lda, * ), s( * )
132 parameter( zero = 0.0e+0, one = 1.0e+0 )
146 INTRINSIC max, min, sqrt, log, int
157 ELSE IF( lda.LT.max( 1, n ) )
THEN
161 CALL
xerbla(
'SPOEQUB', -info )
174 tmp = -0.5 / log( base )
183 smin = min( smin, s( i ) )
184 amax = max( amax, s( i ) )
187 IF( smin.LE.zero )
THEN
192 IF( s( i ).LE.zero )
THEN
203 s( i ) = base ** int( tmp * log( s( i ) ) )
208 scond = sqrt( smin ) / sqrt( amax )