32 std::vector<char> vec;
35 void resize(
int size);
int size()
Returns the size of the vector.
friend GF2Vec operator+(GF2Vec a, GF2Vec b)
Overloading the operator '+'.
GF2Vec sub_vector(int i, int j)
Obtain a subvector between the indices i to j.
void set_vec(const std::vector< char >)
Resets the vector with the given input.
char & operator[](int i)
Access the ith element.
GF2Vec(int size)
Constructs a vector of length "size" with all 0 entries.
std::vector< char > get_vec()
Returns the vector.
GF2Vec()
Default constructor.
Definition gf2vec.h:39
void print_vec()
Prints the vector.
void operator=(GF2Vec x)
Overloading the operator '='.
friend char operator*(GF2Vec a, GF2Vec b)
Overloading the operator '*'.