Boost.Multiprecision
Go to file
Matt Borland 6c4cce0efe
Add license file
2022-02-17 11:47:01 +01:00
.circleci Clean text pow2 list and correct circle CI names 2021-04-01 13:09:28 +02:00
.drone remove TRAVIS_OS_NAME from drone script [ci skip] 2021-01-07 19:10:08 +00:00
.github/workflows Correct msvc platform name in the CI script. 2022-02-05 11:17:57 +00:00
config Cycle CI 2021-07-30 21:08:28 +03:00
doc Ensure remainder has correct sign when the result is zero. 2022-02-01 19:02:02 +00:00
example Replace BOOST_ASSERT with BOOST_MP_ASSERT 2021-11-26 20:29:08 +02:00
include/boost/multiprecision Merge pull request #436 from boostorg/issue388 2022-02-13 09:06:53 +00:00
meta Add "cxxstd" json field. The "cxxstd" json field is being added to each Boost library's meta json information for libraries whose minumum C++ standard compilation level is C++11 on up. The value of this field matches one of the values for 'cxxstd' in Boost.Build. The purpose of doing this is to provide information for the Boost website documentation for each library which will specify the minimum C++ standard compilation that an end-user must employ in order to use the particular library. This will aid end-users who want to know if they can successfully use a Boost library based on their C++ compiler's compilation level, without having to search the library's documentation to find this out. 2020-12-30 20:01:27 -05:00
performance Correct conversion operators so they work in non gnu mode. 2022-01-02 10:49:00 +00:00
plots Convert file encoding. 2020-10-25 09:12:13 +00:00
test Disable fixed-precision tests for msvc-14.1 and earlier. 2022-02-12 16:48:33 +00:00
tools
.clang-format
.drone.star Remove OSX 7.3 and try-start CI 2021-04-02 17:23:18 +02:00
.gitattributes
.gitignore Add clion configs to gitignore 2022-01-06 20:31:44 +02:00
CMakeLists.txt Remove use of boost.core and update cmakelists.txt 2021-11-28 16:10:47 +02:00
LICENSE Add license file 2022-02-17 11:47:01 +01:00
README.md [README] make sure you build the B2 engine before running it 2021-11-16 17:30:37 +05:30
index.html

README.md

Boost Multiprecision Library

ANNOUNCEMENT: Support for C++03 is now removed from this library. Any attempt to build with a non C++11 conforming compiler is doomed to failure.

Master Develop
Drone Build Status Build Status
Github Actions Build Status Build Status

The Multiprecision Library provides integer, rational, floating-point, complex and interval number types in C++ that have more range and precision than C++'s ordinary built-in types. The big number types in Multiprecision can be used with a wide selection of basic mathematical operations, elementary transcendental functions as well as the functions in Boost.Math. The Multiprecision types can also interoperate with the built-in types in C++ using clearly defined conversion rules. This allows Boost.Multiprecision to be used for all kinds of mathematical calculations involving integer, rational and floating-point types requiring extended range and precision.

Multiprecision consists of a generic interface to the mathematics of large numbers as well as a selection of big number back ends, with support for integer, rational and floating-point types. Boost.Multiprecision provides a selection of back ends provided off-the-rack in including interfaces to GMP, MPFR, MPIR, TomMath as well as its own collection of Boost-licensed, header-only back ends for integers, rationals, floats and complex. In addition, user-defined back ends can be created and used with the interface of Multiprecision, provided the class implementation adheres to the necessary concepts.

Depending upon the number type, precision may be arbitrarily large (limited only by available memory), fixed at compile time (for example 50 or 100 decimal digits), or a variable controlled at run-time by member functions. The types are expression-template-enabled for better performance than naive user-defined types.

The full documentation is available on boost.org.

Support, bugs and feature requests

Bugs and feature requests can be reported through the Gitub issue tracker (see open issues and closed issues).

You can submit your changes through a pull request.

There is no mailing-list specific to Boost Multiprecision, although you can use the general-purpose Boost mailing-list using the tag [multiprecision].

Development

Clone the whole boost project, which includes the individual Boost projects as submodules (see boost+git doc):

git clone https://github.com/boostorg/boost
cd boost
git submodule update --init

The Boost Multiprecision Library is located in libs/multiprecision/.

Running tests

First, build the B2 engine by running bootstrap.sh in the root of the boost directory. This will generate B2 configuration in project-config.jam.

./bootstrap.sh

Now make sure you are in libs/multiprecision/test. You can either run all the tests listed in Jamfile.v2 or run a single test:

../../../b2                        <- run all tests
../../../b2 test_complex           <- single test