OPENF4
Library for Gröebner basis computations over finite fields.
|
Represent an element of the field GF(2), this class is a POD (Plain Old Data) because of the alignement required in class Matrix. More...
#include <element-gf2.h>
Public Member Functions | |
bool | getElement () |
Return this. More... | |
ElementGF2 & | addMult (ElementGF2 const &element, ElementGF2 const &mult) |
Set this+=(mult*element). More... | |
ElementGF2 & | inverse () |
Inverse this according to the base field (for genericity). More... | |
void | printElementGF2 (std::ostream &stream) const |
Print the element. | |
bool | isZero () const |
Test if this is nul. More... | |
bool | isOne () const |
Test if this is one (neutral multiplicative element). More... | |
void | setZero () |
Set the element to zero. | |
void | setOne () |
Set the element to one. | |
ElementGF2 & | operator= (bool element) |
Overload the operator =. More... | |
ElementGF2 & | operator*= (ElementGF2 const &mult) |
Overload the operator *=. More... | |
Public Attributes | |
bool | _element |
Represent an element of the field GF(2), this class is a POD (Plain Old Data) because of the alignement required in class Matrix.
Definition at line 46 of file element-gf2.h.
ElementGF2& F4::ElementGF2::addMult | ( | ElementGF2 const & | element, |
ElementGF2 const & | mult | ||
) |
Set this+=(mult*element).
element | Element of the prime field. |
mult | Element of the field gf2. |
bool F4::ElementGF2::getElement | ( | ) |
Return this.
ElementGF2& F4::ElementGF2::inverse | ( | ) |
Inverse this according to the base field (for genericity).
bool F4::ElementGF2::isOne | ( | ) | const |
Test if this is one (neutral multiplicative element).
bool F4::ElementGF2::isZero | ( | ) | const |
Test if this is nul.
ElementGF2& F4::ElementGF2::operator*= | ( | ElementGF2 const & | mult | ) |
Overload the operator *=.
element | Element of the field GF(2). |
ElementGF2& F4::ElementGF2::operator= | ( | bool | element | ) |
Overload the operator =.
element | Element of the field GF(2). |
bool F4::ElementGF2::_element |
Represent an element of the field GF(2)
Definition at line 126 of file element-gf2.h.