Bertini 2 - C++ Core
Software for Numerical Algebraic Geometry
Loading...
Searching...
No Matches
num_traits.hpp File Reference

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"
Include dependency graph for num_traits.hpp:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

Provides an Eigen-like NumTraits struct for querying traits of a number type.

The bertini::NumTraits struct provides NumDigits and NumFuzzyDigits functions.

Function Documentation

◆ Precision() [1/4]

unsigned bertini::Precision ( dbl_complex )
inline

Get the precision of a number.

For complex doubles, this is trivially 16.

◆ Precision() [2/4]

void bertini::Precision ( dbl_complex ,
unsigned prec )
inline

For complex doubles, throw if the requested precision is not DoublePrecision.

◆ Precision() [3/4]

unsigned bertini::Precision ( double )
inline

Get the precision of a number.

For doubles, this is trivially 16.

◆ Precision() [4/4]

void bertini::Precision ( double ,
unsigned prec )
inline

For complex doubles, throw if the requested precision is not DoublePrecision.