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

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

#include <mpfr_complex.hpp>

Public Member Functions

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

Public Attributes

boost::multiprecision::variable_precision_options saved_options
 The options to restore on destruction.

Detailed Description

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

Constructor & Destructor Documentation

◆ scoped_mpfr_precision_options_this_thread()

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

Save the current thread options and set the given ones.

◆ ~scoped_mpfr_precision_options_this_thread()

bertini::scoped_mpfr_precision_options_this_thread::~scoped_mpfr_precision_options_this_thread ( )
inline

Member Function Documentation

◆ reset()

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

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

Member Data Documentation

◆ saved_options

boost::multiprecision::variable_precision_options bertini::scoped_mpfr_precision_options_this_thread::saved_options

The options to restore on destruction.