CGAL / cgal

The public CGAL repository, see the README below
https://github.com/CGAL/cgal#readme
Other
4.95k stars 1.38k forks source link

Improve Fraction_traits<Lazy_exact_nt>::Compose #3607

Open mglisse opened 5 years ago

mglisse commented 5 years ago
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
auto ffff(){ return CGAL::Fraction_traits<CGAL::Exact_predicates_exact_constructions_kernel::FT>::Compose()(2,3); }

generates too much code. It builds 2 lazy integers, makes them exact, builds a rational from them, and copies it to a lazy rational. There are many ways to skip some steps, I haven't thought much about it yet.

mglisse commented 5 years ago

This branch could be relevant for one small part of the issue.