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

Extensions to the Boost.Multiprecision library. More...

#include <boost/multiprecision/mpfr.hpp>
#include <boost/random.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/serialization/split_member.hpp>
#include <string>
#include "bertini2/double_extensions.hpp"
#include <Eigen/src/Core/util/Macros.h>
Include dependency graph for mpfr_extensions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename Archive>
void boost::serialization::load (Archive &ar, ::boost::multiprecision::backends::gmp_int &r, unsigned)
 
template<typename Archive>
void boost::serialization::load (Archive &ar, ::boost::multiprecision::backends::gmp_rational &r, unsigned)
 
template<typename Archive>
void boost::serialization::load (Archive &ar, ::boost::multiprecision::backends::mpfr_float_backend< 0 > &r, unsigned)
 
template<typename T>
T bertini::max (T const &a, T const &b, T const &c)
 Three-argument form of max.
 
template<typename T>
T bertini::max (T const &a, T const &b, T const &c, T const &d)
 Four-argument form of max.
 
template<typename T>
T bertini::max (T const &a, T const &b, T const &c, T const &d, T const &e)
 Five-argument form of max.
 
void bertini::Precision (mpfr_float &num, unsigned prec)
 Change the precision of a real number.
 
auto bertini::Precision (mpfr_float const &num)
 Get the precision of a real number.
 
template<typename Archive>
void boost::serialization::save (Archive &ar, ::boost::multiprecision::backends::gmp_int const &r, unsigned)
 
template<typename Archive>
void boost::serialization::save (Archive &ar, ::boost::multiprecision::backends::gmp_rational const &r, unsigned)
 
template<typename Archive>
void boost::serialization::save (Archive &ar, ::boost::multiprecision::backends::mpfr_float_backend< 0 > const &r, unsigned)
 

Detailed Description

Extensions to the Boost.Multiprecision library.

Particularly includes Boost.Serialize code for the mpfr_float, gmp_rational, and gmp_int types.

Function Documentation

◆ load() [1/3]

template<typename Archive>
void boost::serialization::load ( Archive & ar,
::boost::multiprecision::backends::gmp_int & r,
unsigned  )

Load a gmp_int type from a boost archive.

◆ load() [2/3]

template<typename Archive>
void boost::serialization::load ( Archive & ar,
::boost::multiprecision::backends::gmp_rational & r,
unsigned  )

Load a gmp_rational type from a boost archive.

◆ load() [3/3]

template<typename Archive>
void boost::serialization::load ( Archive & ar,
::boost::multiprecision::backends::mpfr_float_backend< 0 > & r,
unsigned  )

Load a mpfr_float type from a boost archive.

◆ max() [1/3]

template<typename T>
T bertini::max ( T const & a,
T const & b,
T const & c )

Three-argument form of max.

Parameters
aInput one
bInput two
cInput three

◆ max() [2/3]

template<typename T>
T bertini::max ( T const & a,
T const & b,
T const & c,
T const & d )

Four-argument form of max.

Parameters
aInput one
bInput two
cInput three
dInput four

◆ max() [3/3]

template<typename T>
T bertini::max ( T const & a,
T const & b,
T const & c,
T const & d,
T const & e )

Five-argument form of max.

Parameters
aInput one
bInput two
cInput three
dInput four
eInput five

◆ Precision() [1/2]

void bertini::Precision ( mpfr_float & num,
unsigned prec )
inline

Change the precision of a real number.

For mpfr_floats, this calls the precision member method for mpfr_float.

◆ Precision() [2/2]

auto bertini::Precision ( mpfr_float const & num)
inline

Get the precision of a real number.

For mpfr_floats, this calls the precision member method for mpfr_float.

◆ save() [1/3]

template<typename Archive>
void boost::serialization::save ( Archive & ar,
::boost::multiprecision::backends::gmp_int const & r,
unsigned  )

Save a gmp_int type to a boost archive.

◆ save() [2/3]

template<typename Archive>
void boost::serialization::save ( Archive & ar,
::boost::multiprecision::backends::gmp_rational const & r,
unsigned  )

Save a gmp_rational type to a boost archive.

◆ save() [3/3]

template<typename Archive>
void boost::serialization::save ( Archive & ar,
::boost::multiprecision::backends::mpfr_float_backend< 0 > const & r,
unsigned  )

Save a mpfr_float type to a boost archive.