Description
mp++ is a C++ library for multiprecision arithmetic. It targets C++11, 14, 17 and 20 and provides arbitrary-precision integers, rationals, floats and complex numbers, plus quadruple-precision floats and complex numbers. Its design focuses on fast operations on small integer and rational operands, using a small buffer optimisation and custom implementations of basic math primitives, and on being easy to embed in computer algebra systems and generic C++ code. It also includes a growing set of arbitrary-precision special functions, some built on the Arb library. mp++ sits on top of the GNU multiprecision stack, which means GMP, MPFR and MPC. The project does not aim to offer fixed-size wide integers such as a 512-bit type; the README suggests Boost Multiprecision for that. It is a spinoff of the Piranha library and is released under the MPL2 license. The documentation, benchmarks and citation details are linked from the repository.…
Highlights
- Arbitrary-precision integers, rationals, floats and complex numbers
- Quadruple-precision floats and complex numbers
- Built on GMP, MPFR and MPC
- Small-operand performance focus
- Library of special functions
Ratings & Reviews
No ratings yet
Be the first to rate Mppp.
People also visit
Libtommath
LibTomMath is a free open source portable number theoretic multiple-precision
Ultimatepp
U++ is a C++ cross-platform rapid application development framework focused on
AbstractAlgebra.jl
Generic abstract algebra functionality in pure Julia (no C dependencies)
Mppp FAQ
What is mp++?
A C++ library for multiprecision arithmetic. It covers arbitrary-precision integers, rationals, floats and complex numbers, and it is meant to be used inside your own C++ code.
Which C++ versions does it support?
The README lists C++11, 14, 17 and 20.
What does it depend on?
The GNU multiprecision stack: GMP, MPFR and MPC. It began as a GMP wrapper with a focus on speed for small operands.
Does it provide fixed-size wide integers?
No. The README says it does not support types such as uint512_t and suggests Boost Multiprecision for those.
What license is it under?
The MPL2 license. The README notes it is a spinoff of the Piranha library, and asks users who work with it in research to cite it.
What are the best Mppp alternatives?
Popular alternatives to Mppp include RTM, AbstractAlgebra.jl and Tinyexpr. See all Mppp alternatives


