numerix_doc 0.4
|
#include <modular_integer.hpp>
Definition at line 114 of file modular_integer.hpp.
static void inv_mod | ( | C & | a, |
const M & | m | ||
) | [inline, static] |
Definition at line 117 of file modular_integer.hpp.
{ if (m.p == 0) { if (a == 1 || a == -1) return; else ERROR ("inv_mod: argument is not invertible"); } a = invert_modulo (a, m.p); if (a == 0 && m.p != 1) ERROR ("inv_mod: argument is not invertible"); }
Definition at line 129 of file modular_integer.hpp.
{ dest = s; inv_mod (dest, m); }