Subject: Re: [boost] RFC: Multiprecision arithmetic library
Date: 2011-12-22 10:08:53
I really like the idea, and the API looks good.
Have you considered an MPIR backend, in addition to GMP and others? Being the
Windows port of GMP, the interfaces and usage are identical.
On 22 December 2011 at 13:41 John Maddock <boost.regex_at_[hidden]> wrote:
> I'd like to get some feedback on a multiprecision arithmetic library I've
> been preparing for possible Boost inclusion.Â The code is in the sandbox
> under the "big_number" directory.Â Docs can be viewed online here:
> The main features are:
> * A generic front-end that's capable of wrapping almost any type that's a
> "number".Â The front end is expression template enabled and handles all the
> expression optimization and code reduction.Â For example it's possible to
> evaluate a polynomial using Horner's rule without a single temporary
> variable being created.
> * A series of backends that need only provide a reduced interface and set of
> operations, implement the actual arithmetic, currently supported backends
> Integer Types
> 1/ GMP (MPZ).
> 2/ libtommath.
> Rational Types
> 1/ GMP (MPQ).
> [ But note that the integer types can also be used as template aruments to
> Boost.Rational ]
> Floating Point Types
> 1/ GMP (MPF)
> 2/ MPFR
> 3/ cpp_float - an all C++ Boost-licensed backend based on Christopher
> Kormanyos' e_float code.
> [ Note these three types are fully compatible with Boost.Math Trunk - so you
> get full standard library plus special function support ]
> There's still a bunch to do, but I'd like to see what folks think, and where
> the main priorities should be before submission.
> Thanks in advance, John.
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk