Example #1
0
File: GF.hpp Project: luk036/fun
 inline bool
 operator==(const GF<_p>& r, const GF<_p>& s)
 { 
   return r.value() == s.value();
 }
Example #2
0
File: GF.hpp Project: luk036/fun
 // Lets the compiler synthesize the copy constructor
 // GF (const GF<_p>&);
 /// Copy constructor
 GF(const GF<_p>& s) : _m(s.value()) { assert(_m >= 0); }
Example #3
0
File: GF.hpp Project: luk036/fun
   inline GF<_p>
   operator-(const GF<_p>& r)
 {  
   if (r.value() == 0) return r;
   return GF<_p>(_p - r.value()); }