Macaulay2 Engine
Loading...
Searching...
No Matches
◆
operator-()
[1/8]
const
mpreal
mpfr::operator-
(
const double
b
,
const
mpreal
&
a
)
inline
Definition at line
1321
of file
mpreal.h
.
1322
{
1323
#if (MPFR_VERSION >= MPFR_VERSION_NUM(2,4,0))
1324
mpreal
x
(0, mpfr_get_prec(a.
mpfr_ptr
()));
1325
mpfr_d_sub(
x
.mpfr_ptr(), b, a.
mpfr_srcptr
(),
mpreal::get_default_rnd
());
1326
return
x
;
1327
#else
1328
mpreal
x
(b, mpfr_get_prec(a.
mpfr_ptr
()));
1329
x
-= a;
1330
return
x
;
1331
#endif
1332
}
mpfr::mpreal::mpfr_srcptr
::mpfr_srcptr mpfr_srcptr() const
Definition
mpreal.h:1767
mpfr::mpreal::get_default_rnd
static mp_rnd_t get_default_rnd()
Definition
mpreal.h:182
mpfr::mpreal::mpfr_ptr
::mpfr_ptr mpfr_ptr()
Definition
mpreal.h:1765
mpfr::mpreal
Definition
mpreal.h:175
x
volatile int x
Definition
overflow-test.cpp:68
mpfr
Generated on
for Macaulay2 Engine by
1.15.0