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

◆ invert()

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

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

304 {
305 if (is_zero(a))
306 throw exc::division_by_zero_error();
307 fq_nmod_inv(&result, &a, mContext);
308 }
bool is_zero(const ElementType &f) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

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

Referenced by divide(), power(), and power_mpz().