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

◆ invert()

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

Definition at line 174 of file aring-qq-flint.hpp.

175 {
176 if (is_unit(a))
177 {
178 fmpq_inv(&result, &a);
179 return true;
180 }
182 return false;
183 }
void set_zero(ElementType &result) const
bool is_unit(const ElementType &f) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

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