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

◆ set_from_mpz()

void M2::ARingGFM2::set_from_mpz ( elem & result,
mpz_srcptr a ) const
inline

Definition at line 220 of file aring-m2-gf.hpp.

221 {
222 int b = static_cast<int>(mpz_fdiv_ui(a, characteristic()));
223 result = mGF.fromZZTable(b);
224 }
GFElement characteristic() const
GaloisFieldTable mGF
VALGRIND_MAKE_MEM_DEFINED & result(result)

References characteristic(), mGF, and result().

Referenced by set_from_mpq().