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

◆ promote()

bool M2::ARingQQFlint::promote ( const Ring * Rf,
const ring_elem f,
ElementType & result ) const
inline

Definition at line 297 of file aring-qq-flint.hpp.

298 {
299 // printf("ARingQQFlint::calling promote\n");
300 // Rf = ZZ ---> QQ
301 if (Rf->is_ZZ())
302 {
304 return true;
305 }
306 return false;
307 }
void set_from_mpz(ElementType &result, mpz_srcptr a) const
virtual bool is_ZZ() const
Definition ring.hpp:171
VALGRIND_MAKE_MEM_DEFINED & result(result)
mpz_srcptr get_mpz() const
Definition ringelem.hpp:127

References ring_elem::get_mpz(), Ring::is_ZZ(), result(), and set_from_mpz().