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

The main multiprecision complex number type. This is essentially boost::multiprecision' complex. More...

#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/serialization/split_member.hpp>
#include <string>
#include <assert.h>
#include "bertini2/mpfr_extensions.hpp"
#include <boost/multiprecision/mpc.hpp>
Include dependency graph for mpfr_complex.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::mpc_complex_backend< 0 > &r, unsigned)
 
void bertini::Precision (mpfr_complex &num, unsigned prec)
 Change the precision of a number.
 
auto bertini::Precision (mpfr_complex const &num)
 Get the precision of a number.
 
template<typename Archive>
void boost::serialization::save (Archive &ar, ::boost::multiprecision::backends::mpc_complex_backend< 0 > const &r, unsigned)
 

Detailed Description

The main multiprecision complex number type. This is essentially boost::multiprecision' complex.

Function Documentation

◆ load()

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

Load a mpc_complex type from a boost archive.

◆ Precision() [1/2]

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

Change the precision of a number.

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

◆ Precision() [2/2]

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

Get the precision of a number.

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

◆ save()

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

Save a mpc_complex type to a boost archive.