...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
The following backends provide complex number arithmetic:
Backend Type |
Header |
Radix |
Dependencies |
Pros |
Cons |
---|---|---|---|---|---|
|
boost/multiprecision/cpp_complex.hpp |
2 |
None |
An all C++ Boost-licensed implementation. |
Slower than MPC. |
|
boost/multiprecision/mpc.hpp |
2 |
Very fast and efficient back-end. |
Dependency on LGLP-licensed [MPC] library. |
|
|
boost/multiprecision/complex128.hpp |
2 |
|
Very fast and efficient number type. |
128-bit precision only, and resticted to GCC. |
|
boost/multiprecision/complex_adaptor.hpp |
- |
none |
Can convert any backend type into a complex number backend. |
Not a number in its own right, and hard to use as a result. |