use integer and reduce the number of tests

leda_rational is not automatically doing gcd calls so Quotient<leda_integer>
is faster for our applications.
The test is still slow with EPECK
This commit is contained in:
Sébastien Loriot 2021-09-08 15:21:06 +02:00
parent 9f32bd1a79
commit 049c525276
1 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
#include <CGAL/Simple_homogeneous.h> #include <CGAL/Simple_homogeneous.h>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Exact_predicates_exact_constructions_kernel.h> #include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Exact_integer.h>
#include <CGAL/Homogeneous.h> #include <CGAL/Homogeneous.h>
#include <CGAL/squared_distance_3.h> #include <CGAL/squared_distance_3.h>
@ -68,7 +69,7 @@ struct Test
private: private:
CGAL::Random& r; CGAL::Random& r;
const double epsilon = 1e-14; const double epsilon = 1e-14;
int N = 1000; int N = 10;
double m = 0, M = 1; double m = 0, M = 1;
public: public:
@ -681,7 +682,7 @@ int main()
// Test<CGAL::Simple_homogeneous<double> >(r, 1e-5).run(); // Test<CGAL::Simple_homogeneous<double> >(r, 1e-5).run();
// Test<CGAL::Simple_cartesian<CGAL::Interval_nt<true> > >(r, 1e-5).run(); // Test<CGAL::Simple_cartesian<CGAL::Interval_nt<true> > >(r, 1e-5).run();
Test<CGAL::Homogeneous<CGAL::Epeck_ft> >(r, 0).run(); Test<CGAL::Homogeneous<CGAL::Exact_integer> >(r, 0).run();
const double epick_eps = 10 * std::numeric_limits<double>::epsilon(); const double epick_eps = 10 * std::numeric_limits<double>::epsilon();
Test<CGAL::Exact_predicates_inexact_constructions_kernel>(r, epick_eps).run(); Test<CGAL::Exact_predicates_inexact_constructions_kernel>(r, epick_eps).run();