Bertini 2 d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
Loading...
Searching...
No Matches
mpfr_complex.hpp File Reference

The main multiprecision complex number type. 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.

Classes

struct  bertini::scoped_mpfr_precision_options_this_thread
 RAII guard setting the multiprecision variable-precision options for the current thread, restoring on scope exit. More...
struct  bertini::scoped_mpfr_precision_options_all_threads
 RAII guard setting the multiprecision variable-precision options for all threads, restoring on scope exit. More...

Namespaces

namespace  bertini
namespace  boost
namespace  boost::serialization

Typedefs

using bertini::complex_mp = bmp::number<mpc_complex_backend<0>, bmp::et_on >
 The arbitrary-precision complex number type.

Functions

auto bertini::DefaultPrecisionPolicy ()
 The default Boost.Multiprecision variable-precision policy used by bertini.
auto bertini::DefaultPrecision ()
 Get the global default precision (digits) for multiprecision numbers.
void bertini::DefaultPrecision (unsigned prec)
 Set the global default precision (digits) for multiprecision numbers, on this thread and globally.
void bertini::SetThreadPrecision (unsigned prec)
 Set the precision (digits) for the current thread only (does not touch the global default).
unsigned bertini::ThreadPrecision ()
 Get the current thread's precision (digits).
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.
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.
auto bertini::Precision (complex_mp const &num)
 Get the precision of a number.
void bertini::Precision (complex_mp &num, unsigned prec)
 Change the precision of a number.
bool bertini::isnan (complex_mp const &num)
 Query whether either component of a multiprecision complex number is NaN.

Detailed Description

The main multiprecision complex number type.

This is essentially boost::multiprecision' complex