20 std::vector<std::vector<uint8_t>> H;
39 GF2Mat(std::vector<std::vector<uint8_t>> X);
81 std::vector<std::vector<uint8_t>>
get_H();
GF2Vec get_row(int i)
Returns the ith row.
char get_element(int i, int j)
Returns the element at coordinate (i, j)
std::vector< std::vector< uint8_t > > get_H()
Returns the variable H.
void add_cols(int i, int j)
Adds column j to i and replace i with the sum.
void set_element(int i, int j, char val)
Set the element at (i, j) coordinate to val.
void set_col(int i, GF2Vec vec)
Sets the ith column with the given vector.
GF2Mat(alist _list)
Loads the matrix from alist _list.
GF2Mat(int m, int n)
Construct an M x N matrix with all 0 entries.
void add_rows(int i, int j)
Add row j to i and replace j with the sum.
void set_row(int i, GF2Vec vec)
Sets the ith row with the given vector.
GF2Vec operator[](int i)
Returns the ith row.
int get_N()
Returns the variable N.
GF2Mat()
Default constructor.
Definition: gf2mat.h:30
GF2Mat get_G(std::vector< int > &p, int &rank)
Obtains an equivalent representation of H for encoding.
GF2Mat(std::vector< std::vector< uint8_t >> X)
Initializes the class from a 2-D vector X.
int get_M()
Returns the variable M.
void swap_cols(int i, int j)
Swaps columns i and j.
void print_matrix()
Prints the matrix H.
GF2Vec get_col(int i)
Returns the ith column.
GR_RUNTIME_API const pmt::pmt_t vec()