Boost C++ Libraries Home Libraries People FAQ More

Next

Chapter 1. Boost.Multiprecision

John Maddock

Christopher Kormanyos

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Table of Contents

Introduction
Tutorial
Integer Types
cpp_int
gmp_int
tom_int
Examples
Factorials
Bit Operations
Floating-point Types
cpp_bin_float
cpp_dec_float
gmp_float
mpfr_float
float128
Examples
Area of Circle
Drop-in Caveats
Defining a Special Function.
Calculating a Derivative
Calculating an Integral
Polynomial Evaluation
Variable-Precision Newton Evaluation
Gauss-Laguerre quadrature
Interval Number Types
mpfi_float
Complex Number Types
cpp_complex
mpc_complex
complex128
complex_adaptor
Rational Number Types
cpp_rational
gmp_rational
tommath_rational
Use With Boost.Rational
rational_adaptor
Miscellaneous Number Types.
logged_adaptor
debug_adaptor
Visual C++ Debugger Visualizers
Constructing and Interconverting Between Number Types
Generating Random Numbers
Primality Testing
Literal Types and constexpr Support
Importing and Exporting Data to and from cpp_int and cpp_bin_float
Rounding Rules for Conversions
Mixed Precision Arithmetic
Generic Integer Operations
Boost.Serialization Support
Numeric Limits
std::numeric_limits<> constants
std::numeric_limits<> functions
Numeric limits for 32-bit platform
How to Determine the Kind of a Number From std::numeric_limits
Input Output
Hash Function Support
Eigen Interoperability
Writing a New Backend
Reference
number
cpp_int
gmp_int
tom_int
gmp_float
mpfr_float_backend
cpp_bin_float
cpp_dec_float
Internal Support Code
Backend Requirements
Header File Structure
Performance Comparison
The Overhead in the Number Class Wrapper
Floating-Point Real World Tests
Integer Real World Tests
Float Algorithm Performance
Integer Algorithm Performance
Rational Type Performance
Roadmap
History
TODO
FAQ
Acknowledgements
Indexes
Function Index
Class Index
Typedef Index
Index

Last revised: April 22, 2020 at 13:38:51 GMT


Next