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

RAII guard setting the multiprecision variable-precision options for all threads, restoring on scope exit. More...

#include <mpfr_complex.hpp>

Public Member Functions

 scoped_mpfr_precision_options_all_threads (boost::multiprecision::variable_precision_options opts)
 Save the current global and thread options and set the given ones for both.
 ~scoped_mpfr_precision_options_all_threads ()
void reset (boost::multiprecision::variable_precision_options opts)
 Set both the global and thread options again (without changing what will be restored).

Public Attributes

boost::multiprecision::variable_precision_options saved_options_all_threads
 The all-thread options to restore.
boost::multiprecision::variable_precision_options saved_options_this_thread
 The current-thread options to restore.

Detailed Description

RAII guard setting the multiprecision variable-precision options for all threads, restoring on scope exit.

Constructor & Destructor Documentation

◆ scoped_mpfr_precision_options_all_threads()

bertini::scoped_mpfr_precision_options_all_threads::scoped_mpfr_precision_options_all_threads ( boost::multiprecision::variable_precision_options opts)
inline

Save the current global and thread options and set the given ones for both.

◆ ~scoped_mpfr_precision_options_all_threads()

bertini::scoped_mpfr_precision_options_all_threads::~scoped_mpfr_precision_options_all_threads ( )
inline

Member Function Documentation

◆ reset()

void bertini::scoped_mpfr_precision_options_all_threads::reset ( boost::multiprecision::variable_precision_options opts)
inline

Set both the global and thread options again (without changing what will be restored).

Member Data Documentation

◆ saved_options_all_threads

boost::multiprecision::variable_precision_options bertini::scoped_mpfr_precision_options_all_threads::saved_options_all_threads

The all-thread options to restore.

◆ saved_options_this_thread

boost::multiprecision::variable_precision_options bertini::scoped_mpfr_precision_options_all_threads::saved_options_this_thread

The current-thread options to restore.