Subject: CGAL users discussion list
List archive
- From: mauriciojz <>
- To:
- Subject: [cgal-discuss] Summing a large set of Lazy_exact_nt<CGAL::Gmpq> numbers.
- Date: Thu, 23 Mar 2017 07:59:55 -0700 (PDT)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
- Ironport-phdr: 9a23:xR1CxxFbUT9B9cAod1qUh51GYnF86YWxBRYc798ds5kLTJ7zp8mwAkXT6L1XgUPTWs2DsrQf2raQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDWwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VjO+4qplSRLljD4LOyMl/GrKjsB9gr5XrA6kqxF53oXaYpyaNOBmc63Tfd0UW2lPUNteWCNdDY2xdJcPAugbMOpEs4Xxu0UCoB2jDgesHuPvzTpIi2fz3aIgzuQhCwDG0xAhH9IJsnTVrcj+OaAXUe+v0anI1zTDYO9X2Tf68oTIcBEgreuNXb1sasfRxkwvGBnEjlWUs4DqIzSV1uEUvmWd8uFuW+Wvi2s9pAFwpDii3sEshZPSiY0OzlDL6z91z5oyJd29TkNwfN2qEINIui2HNoZ6XNkuT39otSs00LEKpJC2cSYQxJkoyRPTc+GLfomW7h75SuqcITl1iGh4dL+xiRu+60itx+/6W8KpylhFtDBFncPJtn0V1xzc9MyHSvxl80ek1zeP0BrT6uJeLUAyj6XUMIUuwroumZYJrUvDGSr2lF33jK+QaEok5vCl5/nmb7n4vJOQKY95hw/kPqgzlMGyD/40PwcAUmSD/OSzzrzj/Un3QLVQif02l7HUsJXAKsQGvK65AhNa0ock6xqlDTen0c4UnXgbI19edxKHipLmO1DKIPziEfi/hFGsnC9xx//aJr3hHonNLn/bnbj9crZy8UpcxBMuwtBe/JJbFqwBIOnoWkLqr9zZDho5MxSuzOr9CdV90JkeWWOVDaODPqPSqwzA2uV6KOaFYMoZuS32NuM+z//ol34w31EHLoez2p5CbXmlBPVtIkKbczK4h94cC2YBvw14Tv6siVaqXjtaZnL0VKU5sGJoQLm6BJvOE9n+yIeK2z22S8YOPm0=
Occasionally I have to calculate the sum of a large set of rational numbers.
The problem is that I use /Lazy_exact_nt<CGAL::Gmpq>/, which sometimes
results in a /segfault/ due to the number of stored operations. Is there a
nicer way to force the lazy number type to dump these stored operations
besides calling a ".exact()" every now and then? Is it more interesting to
just use /CGAL::Gmpq/ while performing the sum and then construct its lazy
version in the end?
Thank you.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Summing-a-large-set-of-Lazy-exact-nt-CGAL-Gmpq-numbers-tp4662600.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Summing a large set of Lazy_exact_nt<CGAL::Gmpq> numbers., mauriciojz, 03/23/2017
- Re: [cgal-discuss] Summing a large set of Lazy_exact_nt<CGAL::Gmpq> numbers., Sebastien Loriot (GeometryFactory), 03/24/2017
- Re: [cgal-discuss] Summing a large set of Lazy_exact_nt<CGAL::Gmpq> numbers., mauriciojz, 03/25/2017
- Re: [cgal-discuss] Summing a large set of Lazy_exact_nt<CGAL::Gmpq> numbers., Marc Glisse, 03/26/2017
- Re: [cgal-discuss] Summing a large set of Lazy_exact_nt<CGAL::Gmpq> numbers., mauriciojz, 03/25/2017
- Re: [cgal-discuss] Summing a large set of Lazy_exact_nt<CGAL::Gmpq> numbers., Sebastien Loriot (GeometryFactory), 03/24/2017
Archive powered by MHonArc 2.6.18.