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

◆ invert()

bool M2::ARingQQGMP::invert ( ElementType & result,
const ElementType & a ) const
inline

Definition at line 179 of file aring-qq-gmp.hpp.

180 {
181 if (is_unit(a))
182 {
183 mpq_inv(&result, &a);
184 return true;
185 }
187 return false;
188 }
bool is_unit(const ElementType &f) const
void set_zero(ElementType &result) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

References is_unit(), result(), and set_zero().