51 alist(
const char* fname);
54 void read(
const char* fname);
57 void write(
const char* fname)
const;
66 std::vector<std::vector<int>> get_mlist();
69 std::vector<std::vector<int>> get_nlist();
72 std::vector<int> get_num_mlist();
75 std::vector<int> get_num_nlist();
78 int get_max_num_nlist();
81 int get_max_num_mlist();
84 void print_nlist_i(
int i);
87 void print_mlist_i(
int i);
90 std::vector<std::vector<char>> get_matrix();
115 std::vector<std::vector<int>>
mlist;
118 std::vector<std::vector<int>>
nlist;
120 #endif // ifndef ALIST_H std::vector< int > num_nlist
Weight of each column n.
Definition: alist.h:109
PMT_API pmt_t read(std::istream &port)
int N
Number of variable nodes.
Definition: alist.h:97
std::vector< int > num_mlist
Weight of each row m.
Definition: alist.h:112
int max_num_mlist
Maximum weight of rows.
Definition: alist.h:103
alist()
Default Constructor.
Definition: alist.h:48
int max_num_nlist
Maximum weight of columns.
Definition: alist.h:106
int M
Number of check nodes.
Definition: alist.h:100
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:30
PMT_API void write(pmt_t obj, std::ostream &port)
bool data_ok
A variable indicating if data has been read from alist-file.
Definition: alist.h:94
std::vector< std::vector< int > > mlist
List of integer coordinates along each rows with non-zero entries.
Definition: alist.h:115
std::vector< std::vector< int > > nlist
List of integer coordinates along each column with non-zero entries.
Definition: alist.h:118