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

◆ rawRandomCC()

gmp_CC rawRandomCC ( unsigned long precision)

Definition at line 230 of file random.cpp.

233{
235 result->re = const_cast<gmp_RRmutable>(rawRandomRRUniform(precision));
236 result->im = const_cast<gmp_RRmutable>(rawRandomRRUniform(precision));
237 return reinterpret_cast<gmp_CC>(result);
238}
VALGRIND_MAKE_MEM_DEFINED & result(result)
#define getmemstructtype(S)
Definition m2-mem.h:143
struct gmp_CC_struct * gmp_CC
Definition m2-types.h:156
mpfr_ptr gmp_RRmutable
Definition m2-types.h:150
struct gmp_CCmutable_struct * gmp_CCmutable
Definition m2-types.h:159
gmp_RR rawRandomRRUniform(unsigned long precision)
Definition random.cpp:211

References getmemstructtype, rawRandomRRUniform(), and result().