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

◆ divide()

void M2::ARingZZpFlint::divide ( ElementType & result,
ElementType a,
ElementType b ) const
inline

Definition at line 228 of file aring-zzp-flint.hpp.

229 {
230 if (b == 0)
231 throw exc::division_by_zero_error();
232 result = nmod_div(a, b, mModulus);
233 }
VALGRIND_MAKE_MEM_DEFINED & result(result)

References mModulus, and result().

Referenced by set_from_mpq(), and syzygy().