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

◆ getGenerator()

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

Definition at line 126 of file aring-gf-flint.cpp.

127{
128 if (not mGeneratorComputed)
129 {
130 fq_zech_init(&mCachedGenerator, mContext);
131 if (mCharacteristic == 2 and mDimension == 1)
132 // This is currently a bug in flint...
134 else
135 fq_zech_gen(&mCachedGenerator, mContext);
136
137 mGeneratorComputed = true;
138 }
139 copy(result_gen, mCachedGenerator);
140}
void copy(ElementType &result, const ElementType &a) const
fq_zech_ctx_t mContext
void set_from_long(ElementType &result, long a) const
ElementType mCachedGenerator

References copy(), mCachedGenerator, mCharacteristic, mContext, mDimension, mGeneratorComputed, and set_from_long().

Referenced by getElement< M2::ARingGFFlint >().