Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] How to serialize the exact number type CGAL::Exact_predicates_exact_constructions_kernel::FT
Chronological Thread
- From: 郑银河 <>
- To:
- Subject: Re: [cgal-discuss] How to serialize the exact number type CGAL::Exact_predicates_exact_constructions_kernel::FT
- Date: Thu, 3 Mar 2016 10:07:03 -0700
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:BBF16hLZJiU8qRn9w9mcpTZWNBhigK39O0sv0rFitYgUIv/xwZ3uMQTl6Ol3ixeRBMOAu60C1Lad7P+ocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC0ILoi6vtpNX6WEZhunmUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD86FpyshbTK+vf7gkVacKS3M9ImUt7YvqswPCRE2B/DwHQ2AOm11JBQbCqxr1V5O0virhvfdmw3qmOpj9QrkwHDij9Kx2UwTAiSEdNjd//nuEpNZ3ifejWOrp8xZixo/Sb5iUKdJxe6rceZURQm8XDZUZbDBIHo7pN9hHNOEGJ+sN94Q=
Hi Marc,
Thank you very much for your reply. It seems that I have found a way to do the job based on your idea. Let me try to implement it.
Thanks again
Yinhe
2016-03-03 1:43 GMT-07:00 Marc Glisse <>:
On Wed, 2 Mar 2016, 郑银河 wrote:
I used the exact kernel in my project to do the exact computation. However,
it takes a lot of time to calculate some intermediate results. I am finding
a way to restore these results, which are represented using the exact
number type CGAL::Exact_predicates_exact_constructions_kernel::FT, to the
hard disk "as is“ in an exact way and read these data from the disk before
carrying out another calculation. Is there any way to do this kind of job
in CGAL? If not, (which is very likely to be the answer of the previous
question because I tried very hard to search the manual) how can I restore
these intermediate results for another calculation?
Epeck is lazy, it stores a tree of operations that was used to produce this object and an approximation. That seems hard to serialize directly. You could use x.exact() on each number
http://doc.cgal.org/4.7/Number_types/classCGAL_1_1Lazy__exact__nt.html#a1b1e71678b9cb5dcfbca923e6abb0959
this will return a rational number that can be serialized. But if you do it all the time, the laziness becomes useless, and you might as well define CGAL_DONT_USE_LAZY_KERNEL, so FT will directly be that rational type.
--
Marc Glisse
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] How to serialize the exact number type CGAL::Exact_predicates_exact_constructions_kernel::FT, 郑银河, 03/03/2016
- Re: [cgal-discuss] How to serialize the exact number type CGAL::Exact_predicates_exact_constructions_kernel::FT, Marc Glisse, 03/03/2016
- Re: [cgal-discuss] How to serialize the exact number type CGAL::Exact_predicates_exact_constructions_kernel::FT, 郑银河, 03/03/2016
- Re: [cgal-discuss] How to serialize the exact number type CGAL::Exact_predicates_exact_constructions_kernel::FT, Marc Glisse, 03/03/2016
Archive powered by MHonArc 2.6.18.