|
![](/i/fill.gif) |
Nicolas Alvarez <nic### [at] gmail is the best com> wrote:
> Hmm... Looks like there are some C++ wrappers around MPFR that would
> make it quite simpler. And when I say simpler, I mean that in many
> cases, replacing 'double' with 'mpfr_class' would be all (who said
> operator overloading was bad?)
There may be wrappers, but are they efficient?
For such a wrapper to be efficient it would require its own allocator
(afaik. with most unlimited floating point libraries initializing a
floating point value is a heavy operation, so it is recommended to
reuse already-initialized values which are no longer used whenever possible
instead of always initializing new ones) and some type of copy-on-write
mechanism or such (to avoid the huge overhead related to copying/assignment
which would otherwise exist).
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |