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

◆ set_from_mpq()

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

Definition at line 133 of file aring-zz-gmp.hpp.

134 {
135 if (mpz_cmp_si(mpq_denref(a), 1) == 0)
136 {
137 set_from_mpz(result, mpq_numref(a));
138 return true;
139 }
140 return false;
141 }
void set_from_mpz(ElementType &result, mpz_srcptr a) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

References result(), and set_from_mpz().