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

◆ set_from_mpq()

bool M2::ARingZZ::set_from_mpq ( ElementType & result,
mpq_srcptr a ) const
inline

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

139 {
140 if (mpz_cmp_si(mpq_denref(a), 1) == 0)
141 {
142 set_from_mpz(result, mpq_numref(a));
143 return true;
144 }
145 return false;
146 }
void set_from_mpz(ElementType &result, mpz_srcptr a) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

References result(), and set_from_mpz().