diff options
author | Manuel Yguel <manuel.yguel@gmail.com> | 2010-03-25 03:31:33 +0100 |
---|---|---|
committer | Manuel Yguel <manuel.yguel@gmail.com> | 2010-03-25 03:31:33 +0100 |
commit | 671cfb7ad0776ae42cedcb3361b9f2238d7c1ffe (patch) | |
tree | 649a54b091b6a7ebd142ee0159db27be30f14d83 /unsupported/test | |
parent | 89f2d5667fd1ace51ab3e05ad614adbbcff8dab8 (diff) |
Fix wrong header and warnings in polynomialutils.cpp
Diffstat (limited to 'unsupported/test')
-rw-r--r-- | unsupported/test/polynomialutils.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/unsupported/test/polynomialutils.cpp b/unsupported/test/polynomialutils.cpp index b1afaccc6..7f93c2f0d 100644 --- a/unsupported/test/polynomialutils.cpp +++ b/unsupported/test/polynomialutils.cpp @@ -23,7 +23,7 @@ // Eigen. If not, see <http://www.gnu.org/licenses/>. #include "main.h" -#include <Eigen/Polynomials> +#include <unsupported/Eigen/Polynomials> #include <iostream> using namespace std; @@ -45,7 +45,7 @@ void realRoots_to_monicPolynomial_test(int deg) PolynomialType pols(deg+1); EvalRootsType roots = EvalRootsType::Random(deg); - realRoots_to_monicPolynomial( roots, pols ); + roots_to_monicPolynomial( roots, pols ); EvalRootsType evr( deg ); for( int i=0; i<roots.size(); ++i ){ @@ -67,8 +67,8 @@ template<typename _Scalar> void realRoots_to_monicPolynomial_scalar() CALL_SUBTEST_7( (realRoots_to_monicPolynomial_test<_Scalar,7>(7)) ); CALL_SUBTEST_8( (realRoots_to_monicPolynomial_test<_Scalar,17>(17)) ); - int deg = ei_random<int>(18,26); - CALL_SUBTEST_9( (realRoots_to_monicPolynomial_test<_Scalar,Dynamic>(deg)) ); + CALL_SUBTEST_9( (realRoots_to_monicPolynomial_test<_Scalar,Dynamic>( + ei_random<int>(18,26) )) ); } @@ -83,7 +83,7 @@ void CauchyBounds(int deg) PolynomialType pols(deg+1); EvalRootsType roots = EvalRootsType::Random(deg); - realRoots_to_monicPolynomial( roots, pols ); + roots_to_monicPolynomial( roots, pols ); _Scalar M = cauchy_max_bound( pols ); _Scalar m = cauchy_min_bound( pols ); _Scalar Max = roots.array().abs().maxCoeff(); @@ -108,8 +108,8 @@ template<typename _Scalar> void CauchyBounds_scalar() CALL_SUBTEST_7( (CauchyBounds<_Scalar,7>(7)) ); CALL_SUBTEST_8( (CauchyBounds<_Scalar,17>(17)) ); - int deg = ei_random<int>(18,26); - CALL_SUBTEST_9( (CauchyBounds<_Scalar,Dynamic>(deg)) ); + CALL_SUBTEST_9( (CauchyBounds<_Scalar,Dynamic>( + ei_random<int>(18,26) )) ); } void test_polynomialutils() |