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

◆ from_ring_elem_const()

const ElementType M2::ARingQQFlint::from_ring_elem_const ( const ring_elem & a) const
inline

returns a read only view into the ring_elem The return value of this function should not be modified, since the contents point directly into the input ring_elem.

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

287 {
288 mpq_srcptr a1 = a.get_mpq();
289 fmpq result;
290 result.num = PTR_TO_COEFF(mpq_numref(a1));
291 result.den = PTR_TO_COEFF(mpq_denref(a1));
292 return result;
293 }
VALGRIND_MAKE_MEM_DEFINED & result(result)
mpq_srcptr get_mpq() const
Definition ringelem.hpp:129

References ring_elem::get_mpq(), and result().