50 std::vector<uint8_t>
encode(std::vector<uint8_t> dataword);
68 std::vector<uint8_t>
syndrome(
const std::vector<uint8_t> in);
87 std::vector<int> permute;
cldpc(const GF2Mat X)
Constructs the LDPC class from given GF2mat X.
std::vector< uint8_t > get_systematic_bits(std::vector< uint8_t > in)
Obtain systematic bits from "in".
bool is_codeword(const std::vector< uint8_t > in)
Returns true if "in" is a codeword, else false.
void set_alist(const alist _list)
Set the variable _list.
cldpc()
Default constructor.
Definition: cldpc.h:26
GF2Mat get_G()
Returns the matrix G used in encoding.
std::vector< uint8_t > encode(std::vector< uint8_t > dataword)
Encode the given vector dataword.
cldpc(const alist _list)
Constructs the class from the given alist _list.
std::vector< uint8_t > syndrome(const std::vector< uint8_t > in)
Returns the syndrome for a given vector "in".
int get_M()
Returns the variable M.
GF2Mat get_H()
Returns the parity check matrix H.
void print_permute()
Prints the variable permute.
int dimension()
Returns the dimension of the code.
int get_N()
Returns the variable N.
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:18