#include #include #include #include #include #include #include #include #include #ifdef CGAL_POLYNOMIAL_USE_GSL #include #endif #include "Check_solver.h" bool verbose=true; typedef CGAL_POLYNOMIAL_NS::Polynomial Pd; typedef CGAL_POLYNOMIAL_NS::Root_stack_default_traits Dt; int main(int argc, char* argv[]) { //assert(std::numeric_limits::has_infinity()); if ( argc > 1 ) { int is_verbose = std::atoi(argv[1]); if ( is_verbose == 0 ) { verbose = false; } else verbose = true; } #ifdef CGAL_POLYNOMIAL_USE_GSL { if (verbose) std::cout <<"GSL________________________________________\n"; else std::cout << "GSL &\t"; typedef CGAL_POLYNOMIAL_NS::Numeric_root_stack NRE; typedef CGAL_POLYNOMIAL_NS::Kernel K; K k; Check_solver cg(k,verbose); cg.all(); std::cout << std::endl; } #endif #ifdef CGAL_USE_TNT { if (verbose) std::cout <<"JAMA______________________________________\n"; else std::cout << "JAMA &\t"; typedef CGAL_POLYNOMIAL_NS::Numeric_root_stack NRE; typedef CGAL_POLYNOMIAL_NS::Kernel K; K k; Check_solver cg(k,verbose); cg.all(); std::cout << std::endl; } #endif { if (verbose) std::cout <<"Turk______________________________________\n"; else std::cout << "Turk &\t"; typedef CGAL_POLYNOMIAL_NS::Numeric_root_stack NRE; typedef CGAL_POLYNOMIAL_NS::Kernel K; K k; Check_solver cg(k,verbose); cg.all(); std::cout << std::endl; } #ifdef CGAL_POLYNOMIAL_USE_GSL { if (verbose) std::cout <<"CleanGSL__________________________________\n"; else std::cout << "CleanGSL &\t"; typedef CGAL_POLYNOMIAL_NS::Numeric_root_stack NRE; typedef CGAL_POLYNOMIAL_NS::Kernel K; K k; Check_solver cg(k,verbose); cg.cleaned(); std::cout << std::endl; } #endif #ifdef CGAL_USE_TNT { if (verbose) std::cout <<"CleanJAMA________________________________\n"; else std::cout << "CleanJAMA &\t"; typedef CGAL_POLYNOMIAL_NS::Numeric_root_stack NRE; typedef CGAL_POLYNOMIAL_NS::Kernel K; K k; Check_solver cg(k,verbose); cg.cleaned(); std::cout << std::endl; } #endif { if (verbose) std::cout <<"CleanTurk________________________________\n"; else std::cout << "CleanTurk &\t"; typedef CGAL_POLYNOMIAL_NS::Numeric_root_stack NRE; typedef CGAL_POLYNOMIAL_NS::Kernel K; K k; Check_solver cg(k,verbose); cg.cleaned(); std::cout << std::endl; } /*{ if (verbose) std::cout <<"Descartes__________________________________\n"; else std::cout << "Descartes &\t"; typedef CGAL_POLYNOMIAL_NS::Upper_bound_enumerator_Descartes_traits Dt; typedef CGAL_POLYNOMIAL_NS::Upper_bound_root_enumerator
NRE; typedef CGAL_POLYNOMIAL_NS::Kernel K; K k; Check_solver cg(k,verbose); cg.all(); std::cout << std::endl; }*/ return 0; }