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

◆ set_from_long()

void M2::ARingGFFlint::set_from_long ( ElementType & result,
long a ) const
inline

Definition at line 239 of file aring-gf-flint.hpp.

240 {
241 long a1 = a % characteristic();
242 if (a1 < 0) a1 += characteristic();
243 fq_zech_set_ui(&result, a1, mContext);
244 }
fq_zech_ctx_t mContext
long characteristic() const
VALGRIND_MAKE_MEM_DEFINED & result(result)

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

Referenced by getGenerator(), set_from_mpz(), set_var(), syzygy(), and TEST().