26 #ifndef OPENF4_ELEMENT_GF2_H
27 #define OPENF4_ELEMENT_GF2_H
153 #include "../src/element-gf2.inl"
156 #endif // OPENF4_ELEMENT_GF2_H
void setOne()
Set the element to one.
void setZero()
Set the element to zero.
ElementPrime< baseType > operator-(ElementPrime< baseType > const &element)
Overload the operator -.
void printElementGF2(std::ostream &stream) const
Print the element.
bool isZero() const
Test if this is nul.
Wrapper for config.h in order to avoid multiple definitions.
ElementGF2 & addMult(ElementGF2 const &element, ElementGF2 const &mult)
Set this+=(mult*element).
ElementGF2 & operator=(bool element)
Overload the operator =.
bool getElement()
Return this.
Term< Element > operator*(Monomial const &mon, Term< Element > const &term)
Overload the operator *.
Represent an element of the field GF(2), this class is a POD (Plain Old Data) because of the aligneme...
ElementGF2 & inverse()
Inverse this according to the base field (for genericity).
bool isOne() const
Test if this is one (neutral multiplicative element).
ElementGF2 & operator*=(ElementGF2 const &mult)
Overload the operator *=.
std::ostream & operator<<(std::ostream &stream, Term< Element > const &term)
Overload the operator <<.