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

◆ set_from_long()

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

Definition at line 259 of file aring-gf-flint-big.hpp.

260 {
261 long a1 = a % characteristic();
262 if (a1 < 0) a1 += characteristic();
263 fq_nmod_set_ui(&result, a1, mContext);
264 }
VALGRIND_MAKE_MEM_DEFINED & result(result)

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

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