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

◆ getGenerator()

void M2::ARingGFFlintBig::getGenerator ( ElementType & result_gen) const

Definition at line 112 of file aring-gf-flint-big.cpp.

113{
114 if (not mGeneratorComputed)
115 {
116 fq_nmod_init(&mCachedGenerator, mContext);
117 fq_nmod_gen(&mCachedGenerator, mContext);
118 mGeneratorComputed = true;
119 }
120 copy(result_gen, mCachedGenerator);
121}
void copy(ElementType &result, const ElementType &a) const

References copy(), mCachedGenerator, mContext, and mGeneratorComputed.