Esempio n. 1
0
File: GF.hpp Progetto: luk036/fun
 inline bool
 operator==(const GF<_p>& r, const GF<_p>& s)
 { 
   return r.value() == s.value();
 }
Esempio n. 2
0
File: GF.hpp Progetto: 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); }
Esempio n. 3
0
File: GF.hpp Progetto: luk036/fun
   inline GF<_p>
   operator-(const GF<_p>& r)
 {  
   if (r.value() == 0) return r;
   return GF<_p>(_p - r.value()); }