MCPcopy Create free account
hub / github.com/bluescarni/mppp

github.com/bluescarni/mppp @v2.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.0 ↗ · + Follow
2,756 symbols 6,438 edges 199 files 303 documented · 11% updated 19mo agov2.0.0 · 2024-12-10★ 3219 open issues

Browse by type

Functions 2,093 Types & classes 663
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

mp++

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

Multiprecision for C++



<a href="https://bluescarni.github.io/mppp/index.html"><strong>Explore the docs »</strong></a>






<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>

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

  • arbitrary-precision integers,
  • arbitrary-precision rationals,
  • quadruple-precision floats,
  • quadruple-precision complex numbers,
  • arbitrary-precision floats,
  • arbitrary-precision complex numbers.

Design goals include:

  • excellent performance for small integer and rational operands,
  • easy embeddability in computer algebra systems and generic C++ libraries,
  • a large collection of arbitrary-precision special functions,
  • an ergonomic API based on modern C++ idioms.

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.

Core symbols most depended-on inside this repo

Shape

Method 1,110
Function 983
Class 636
Enum 27

Languages

C++100%
Python1%

Modules by API surface

test/catch.hpp1,343 symbols
include/mp++/integer.hpp201 symbols
src/real.cpp96 symbols
include/mp++/real.hpp96 symbols
include/mp++/complex.hpp88 symbols
include/mp++/real128.hpp81 symbols
include/mp++/rational.hpp70 symbols
include/mp++/complex128.hpp42 symbols
src/real128.cpp37 symbols
include/mp++/extra/pybind11.hpp36 symbols
test/rational_basic_02.cpp35 symbols
include/mp++/detail/type_traits.hpp29 symbols

For agents

$ claude mcp add mppp \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page