Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] More Newb Questions..... Filing Complex Numbers.

Subject: CGAL users discussion list

List archive

[cgal-discuss] More Newb Questions..... Filing Complex Numbers.


Chronological Thread 
  • From: Vicomt <>
  • To:
  • Subject: [cgal-discuss] More Newb Questions..... Filing Complex Numbers.
  • Date: Fri, 15 Jan 2010 02:18:08 -0800 (PST)


OK, so I've never really had to use complex numbers before, double has been
precise enough, but I've taken the plunge and started using them. However, I
need to file out some complex number data to another file format which only
allows be to write out basic number types or pure binary data chunks.

Obviously, just converting back to simple number types is out, as I'll lose
all the accuracy, so what I need is way to access (read and write) the
underlying data for a complex number, in order to write out and read in
accurate values.

I've gone with a CGAL::Exact_predicates_exact_constructions_kernel so my
number type is effectively a
CGAL::Lazy_exact_nt<CGAL::Quotient<CGAL::MP_Float>>, but due to my lack of
familiarity with template classes and complex numbers, I have no idea how to
access the underlying data.

can anyone point me in the right direction?

--
View this message in context:
http://n4.nabble.com/More-Newb-Questions-Filing-Complex-Numbers-tp1014664p1014664.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page