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

◆ to_ring_elem()

void M2::ARingZZ::to_ring_elem ( ring_elem & result,
const ElementType & a ) const
inline

Definition at line 268 of file aring-zz-flint.hpp.

269 {
270 mpz_ptr b = getmemstructtype(mpz_ptr);
271 mpz_init(b);
272 fmpz_get_mpz(b, &a);
274 result = ring_elem(b);
275 }
void mpz_reallocate_limbs(mpz_ptr _z)
Definition gmp-util.h:46
VALGRIND_MAKE_MEM_DEFINED & result(result)
#define getmemstructtype(S)
Definition m2-mem.h:143

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