Fix bug #314: move remaining math functions from internal to numext namespace

This commit is contained in:
Gael Guennebaud
2013-06-10 23:40:56 +02:00
parent 827843bbbd
commit 62670c83a0
71 changed files with 408 additions and 388 deletions

View File

@@ -83,10 +83,10 @@ class PolynomialSolverBase
inline const RootType& selectComplexRoot_withRespectToNorm( squaredNormBinaryPredicate& pred ) const
{
Index res=0;
RealScalar norm2 = internal::abs2( m_roots[0] );
RealScalar norm2 = numext::abs2( m_roots[0] );
for( Index i=1; i<m_roots.size(); ++i )
{
const RealScalar currNorm2 = internal::abs2( m_roots[i] );
const RealScalar currNorm2 = numext::abs2( m_roots[i] );
if( pred( currNorm2, norm2 ) ){
res=i; norm2=currNorm2; }
}
@@ -150,7 +150,7 @@ class PolynomialSolverBase
res = i; }
}
}
return internal::real_ref(m_roots[res]);
return numext::real_ref(m_roots[res]);
}
@@ -191,7 +191,7 @@ class PolynomialSolverBase
res = i; }
}
}
return internal::real_ref(m_roots[res]);
return numext::real_ref(m_roots[res]);
}
public:

View File

@@ -47,7 +47,7 @@ T poly_eval( const Polynomials& poly, const T& x )
{
typedef typename NumTraits<T>::Real Real;
if( internal::abs2( x ) <= Real(1) ){
if( numext::abs2( x ) <= Real(1) ){
return poly_eval_horner( poly, x ); }
else
{