|
Bertini 2 d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
|
Numeric traits for multiprecision reals (digit counts follow the thread precision). More...
#include <num_traits.hpp>
Public Types | |
| using | Real = real_mp |
| The real companion type. | |
| using | Complex = complex_mp |
| The complex companion type. | |
Static Public Member Functions | |
| static unsigned | NumDigits () |
| The number of significant digits (the current thread precision). | |
| static unsigned | NumFuzzyDigits () |
| The number of digits to trust for fuzzy comparisons. | |
| static unsigned | TolToDigits (real_mp tol) |
| Convert a tracking tolerance to a number of significant digits. | |
| static real_mp | FromString (std::string const &s) |
| Parse a multiprecision real from a string. | |
| static real_mp | FromRational (mpq_rational const &n, unsigned precision) |
| Convert an exact rational to a multiprecision real at the given precision. | |
Numeric traits for multiprecision reals (digit counts follow the thread precision).
| using bertini::NumTraits< real_mp >::Complex = complex_mp |
The complex companion type.
| using bertini::NumTraits< real_mp >::Real = real_mp |
The real companion type.
|
inlinestatic |
Convert an exact rational to a multiprecision real at the given precision.
|
inlinestatic |
Parse a multiprecision real from a string.
|
inlinestatic |
The number of significant digits (the current thread precision).
|
inlinestatic |
The number of digits to trust for fuzzy comparisons.
|
inlinestatic |
Convert a tracking tolerance to a number of significant digits.