From 671cfb7ad0776ae42cedcb3361b9f2238d7c1ffe Mon Sep 17 00:00:00 2001 From: Manuel Yguel Date: Thu, 25 Mar 2010 03:31:33 +0100 Subject: [PATCH] Fix wrong header and warnings in polynomialutils.cpp --- unsupported/test/polynomialutils.cpp | 14 +++++++------- 1 file 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 . #include "main.h" -#include +#include #include 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 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(18,26); - CALL_SUBTEST_9( (realRoots_to_monicPolynomial_test<_Scalar,Dynamic>(deg)) ); + CALL_SUBTEST_9( (realRoots_to_monicPolynomial_test<_Scalar,Dynamic>( + ei_random(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 void CauchyBounds_scalar() CALL_SUBTEST_7( (CauchyBounds<_Scalar,7>(7)) ); CALL_SUBTEST_8( (CauchyBounds<_Scalar,17>(17)) ); - int deg = ei_random(18,26); - CALL_SUBTEST_9( (CauchyBounds<_Scalar,Dynamic>(deg)) ); + CALL_SUBTEST_9( (CauchyBounds<_Scalar,Dynamic>( + ei_random(18,26) )) ); } void test_polynomialutils()