Home

Awesome

mp++

Build Status Build Status language language language Code Coverage Join the chat at https://gitter.im/bluescarni/mppp Anaconda-Server Badge

<!-- [![DOI](https://zenodo.org/badge/66504757.svg)](https://doi.org/10.5281/zenodo.1043579) --> <!-- PROJECT LOGO --> <br /> <p align="center"> <p align="center"> Multiprecision for C++ <br /> <a href="https://bluescarni.github.io/mppp/index.html"><strong>Explore the docs »</strong></a> <br /> <br /> <a href="https://github.com/bluescarni/mppp/issues/new/choose">Report bug</a> · <a href="https://github.com/bluescarni/mppp/issues/new/choose">Request feature</a> · <a href="https://github.com/bluescarni/mppp/discussions">Discuss</a> </p> </p>

mp++ is a C++11/14/17/20 library for multiprecision arithmetic, featuring:

Design goals include:

Design non-goals include:

Built on top of the GNU multiprecision stack (GMP, MPFR, MPC), mp++ was initially conceived as a GMP wrapper with special focus on performance with small operands. In particular, a small buffer optimisation and custom implementations of basic mathematical primitives are instrumental in achieving a performance increase, with respect to GMP and other integer multiprecision libraries, which can be substantial (see the benchmarks section of the documentation).

Over time, mp++ has accrued many additional features, including multiprecision real and complex number types, and an expanding library of special functions (built in part on top of the excellent Arb library).

mp++ is a spinoff of the Piranha library, released under the MPL2 license. If you are using mp++ as part of your research, teaching, or other activities, we would be grateful if you could star the repository and/or cite our work. The DOI of the latest version and other citation resources are available at this link.

The documentation is available here.