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

◆ power()

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

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

354 {
355 if (n < 0)
356 {
357 invert(result, a);
358 fq_zech_pow_ui(&result, &result, -n, mContext);
359 }
360 else
361 fq_zech_pow_ui(&result, &a, n, mContext);
362 }
fq_zech_ctx_t mContext
void invert(ElementType &result, const ElementType &a) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

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

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