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

◆ power()

void M2::ARingGFFlintBig::power ( ElementType & result,
const ElementType & a,
int n ) const
inline

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

372 {
373 if (n < 0)
374 {
375 invert(result, a);
376 fq_nmod_pow_ui(&result, &result, -n, mContext);
377 }
378 else
379 fq_nmod_pow_ui(&result, &a, n, mContext);
380 }
void invert(ElementType &result, const ElementType &a) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

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