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

◆ invert()

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

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

285 {
286 if (is_zero(a))
287 throw exc::division_by_zero_error();
288 else fq_zech_inv(&result, &a, mContext);
289 }
bool is_zero(const ElementType &f) const
fq_zech_ctx_t mContext
VALGRIND_MAKE_MEM_DEFINED & result(result)

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

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