42 void read(
const char* fname);
45 void write(
const char* fname)
const;
103 std::vector<std::vector<int>>
mlist;
106 std::vector<std::vector<int>>
nlist;
std::vector< int > num_nlist
Weight of each column n.
Definition: alist.h:97
std::vector< int > get_num_mlist()
Returns the num_mlist variable.
int get_M()
Return M, the number of check nodes.
std::vector< std::vector< int > > mlist
List of integer coordinates along each rows with non-zero entries.
Definition: alist.h:103
int N
Number of variable nodes.
Definition: alist.h:85
std::vector< std::vector< uint8_t > > get_matrix()
Returns the corresponding H matrix.
std::vector< int > num_mlist
Weight of each row m.
Definition: alist.h:100
int M
Number of check nodes.
Definition: alist.h:88
std::vector< int > get_num_nlist()
Returns the num_nlist variable.
int max_num_nlist
Maximum weight of columns.
Definition: alist.h:94
alist(const char *fname)
Constructor which loads alist class from an alist-file.
void read(const char *fname)
Read alist data from a file.
int get_N()
Returns N, the number of variable nodes.
void write(const char *fname) const
Write alist data to a file.
std::vector< std::vector< int > > nlist
List of integer coordinates along each column with non-zero entries.
Definition: alist.h:106
int max_num_mlist
Maximum weight of rows.
Definition: alist.h:91
std::vector< std::vector< int > > get_nlist()
Returns the n_list variable.
bool data_ok
A variable indicating if data has been read from alist-file.
Definition: alist.h:82
int get_max_num_mlist()
Returns the max_num_mlist variable.
void print_mlist_i(int i)
Prints the mlist[i] variable.
alist()
Default Constructor.
Definition: alist.h:36
void print_nlist_i(int i)
Prints the nlist[i] variable.
int get_max_num_nlist()
Returns the max_num_nlist variable.
std::vector< std::vector< int > > get_mlist()
Return the m_list variable.
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:18