Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] comparison with CORE::expr type takes forever

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] comparison with CORE::expr type takes forever


Chronological Thread 
  • From:
  • To:
  • Subject: Re: [cgal-discuss] comparison with CORE::expr type takes forever
  • Date: Fri, 05 Oct 2007 16:23:29 +0200

Hi Amir

If you only need square roots, you can use CGAL::Root_of_2<RT> or alternatively the new CGAL::Sqrt_extension<NT,ROOT>

They are robust and quite efficient compared to the more powerful Core expressions.

Best,
Monique Teillaud


wrote:
I am implementing an event-based algorithm, which has to be very robust in order to wprk properly. Unfortunately, I can't use rational numbers, and so I tried to apply CORE::expr types (I need closure for the usual arithmetics and square root).
However, when I try to compare two CORE::expr numbers which are very close,
but that were calculated different, the comparison takes an unproportionate
amount of times (sometimes severel minutes), and smetimes it just gets
stuck.. am I doing something wrong? (or is there a more prefered number type?)

Amir.



Archive powered by MHonArc 2.6.16.

Top of Page