modulus_polynomial_inv_naive< V > Struct Template Reference

#include <modular_polynomial.hpp>

Inheritance diagram for modulus_polynomial_inv_naive< V >:
V

List of all members.

Static Public Member Functions


Detailed Description

template<typename V>
struct mmx::modulus_polynomial_inv_naive< V >

Definition at line 29 of file modular_polynomial.hpp.


Member Function Documentation

static void inv_mod ( C dest,
const C s,
const M &  m 
) [inline, static]

Definition at line 48 of file modular_polynomial.hpp.

References modulus_polynomial_inv_naive< V >::inv_mod().

00048                                             {
00049     dest = s;
00050     inv_mod (dest, m); }

static void inv_mod ( C a,
const M &  m 
) [inline, static]

Definition at line 36 of file modular_polynomial.hpp.

References mmx::deg(), and mmx::invert_modulo().

Referenced by modulus_polynomial_inv_naive< V >::inv_mod().

00036                              {
00037     if (m.p == 0) {
00038       if (deg (a) == 0)
00039         a= 1 / a [0];
00040       else
00041         ERROR ("inv_mod: argument is not invertible");
00042     }
00043     a = invert_modulo (a, m.p);
00044     if (a == 0)
00045       ERROR ("inv_mod: argument is not invertible"); }

static bool is_invertible_mod ( const C s,
const M &  m 
) [inline, static]

Definition at line 32 of file modular_polynomial.hpp.

References mmx::abs(), and mmx::gcd().

00032                                              {
00033     return abs (gcd (s, m.p)) == 1; }


The documentation for this struct was generated from the following file:

Generated on 6 Dec 2012 for algebramix by  doxygen 1.6.1