|
Bertini 2 - C++ Core
Software for Numerical Algebraic Geometry
|
Provides an Eigen-like NumTraits struct for querying traits of a number type. More...
#include <random>#include <complex>#include <cmath>#include "bertini2/mpfr_complex.hpp"#include "bertini2/random.hpp"Go to the source code of this file.
Functions | |
| unsigned | bertini::Precision (dbl_complex) |
| Get the precision of a number. | |
| void | bertini::Precision (dbl_complex, unsigned prec) |
| unsigned | bertini::Precision (double) |
| Get the precision of a number. | |
| void | bertini::Precision (double, unsigned prec) |
Provides an Eigen-like NumTraits struct for querying traits of a number type.
The bertini::NumTraits struct provides NumDigits and NumFuzzyDigits functions.
|
inline |
Get the precision of a number.
For complex doubles, this is trivially 16.
|
inline |
For complex doubles, throw if the requested precision is not DoublePrecision.
|
inline |
Get the precision of a number.
For doubles, this is trivially 16.
|
inline |
For complex doubles, throw if the requested precision is not DoublePrecision.