| 
    algebramix_doc 0.3 
   | 
 
#include <modular_polynomial.hpp>
  
 Definition at line 27 of file modular_polynomial.hpp.
| static void inv_mod | ( | C & | a, | 
| const M & | m | ||
| ) |  [inline, static] | 
        
Definition at line 30 of file modular_polynomial.hpp.
References mmx::deg(), and mmx::invert_modulo().
Referenced by modulus_polynomial_inv_naive< V >::inv_mod().
                             {
    if (m.p == 0) {
      if (deg (a) == 0)
        a= 1 / a [0];
      else
        ERROR ("inv_mod: argument is not invertible");
    }
    a = invert_modulo (a, m.p);
    if (a == 0)
      ERROR ("inv_mod: argument is not invertible"); }
Definition at line 42 of file modular_polynomial.hpp.
References modulus_polynomial_inv_naive< V >::inv_mod().
                                            {
    dest = s;
    inv_mod (dest, m); }