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

◆ toBigComplex()

gmp_CC M2::ARingCCC::toBigComplex ( const ElementType & a) const
inline

Definition at line 549 of file aring-CCC.hpp.

550 {
554 mpfr_init2(result->re, get_precision());
555 mpfr_init2(result->im, get_precision());
556 mpfr_set(result->re, &a.re, MPFR_RNDN);
557 mpfr_set(result->im, &a.im, MPFR_RNDN);
558 return moveTo_gmpCC(result);
559 }
unsigned long get_precision() const
Definition aring-CCC.hpp:88
gmp_CC moveTo_gmpCC(gmp_CCmutable _z)
Definition gmp-util.h:166
VALGRIND_MAKE_MEM_DEFINED & result(result)
#define getmemstructtype(S)
Definition m2-mem.h:143
mpfr_ptr gmp_RRmutable
Definition m2-types.h:150
struct gmp_CCmutable_struct * gmp_CCmutable
Definition m2-types.h:159

References get_precision(), getmemstructtype, cc_struct::im, moveTo_gmpCC(), cc_struct::re, and result().