52 alist(
const char * fname);
55 void read(
const char * fname);
58 void write(
const char * fname)
const;
67 std::vector< std::vector<int> > get_mlist();
70 std::vector< std::vector<int> > get_nlist();
73 std::vector<int> get_num_mlist();
76 std::vector<int> get_num_nlist();
79 int get_max_num_nlist();
82 int get_max_num_mlist();
85 void print_nlist_i(
int i);
88 void print_mlist_i(
int i);
91 std::vector<std::vector<char> > get_matrix();
116 std::vector< std::vector<int> >
mlist;
119 std::vector< std::vector<int> >
nlist;
121 #endif // ifndef ALIST_H
std::vector< int > num_nlist
Weight of each column n.
Definition: alist.h:110
PMT_API pmt_t read(std::istream &port)
int N
Number of variable nodes.
Definition: alist.h:98
std::vector< int > num_mlist
Weight of each row m.
Definition: alist.h:113
std::vector< std::vector< int > > mlist
List of integer coordinates along each rows with non-zero entries.
Definition: alist.h:116
int max_num_mlist
Maximum weight of rows.
Definition: alist.h:104
std::vector< std::vector< int > > nlist
List of integer coordinates along each column with non-zero entries.
Definition: alist.h:119
alist()
Default Constructor.
Definition: alist.h:49
int max_num_nlist
Maximum weight of columns.
Definition: alist.h:107
int M
Number of check nodes.
Definition: alist.h:101
#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:95