Macaulay2 Engine
Loading...
Searching...
No Matches

◆ mpreal() [14/16]

mpfr::mpreal::mpreal ( const mpfr_t u,
bool shared = false )
inline

Definition at line 642 of file mpreal.h.

643{
644 if(shared)
645 {
646 std::memcpy(mpfr_ptr(), u, sizeof(mpfr_t));
647 }
648 else
649 {
650 mpfr_init2(mpfr_ptr(), mpfr_get_prec(u));
651 mpfr_set (mpfr_ptr(), u, mpreal::get_default_rnd());
652 }
653
655}
::mpfr_ptr mpfr_ptr()
Definition mpreal.h:1765
#define MPREAL_MSVC_DEBUGVIEW_CODE
Definition mpreal.h:146

References get_default_rnd(), mpfr_ptr(), mpreal(), and MPREAL_MSVC_DEBUGVIEW_CODE.