#include <ldpc.h>
Public Member Functions | |
BLDPC_Generator (const std::string type="BLDPC") | |
Default constructor. | |
BLDPC_Generator (const BLDPC_Parity *const H, const std::string type="BLDPC") | |
Parametrized constructor. | |
int | get_exp_factor () const |
Get expansion factor. | |
void | encode (const bvec &input, bvec &output) |
Generator specific encode function. | |
void | construct (const BLDPC_Parity *const H) |
Construct the BLDPC generator. | |
std::string | get_type () const |
Return generator type. | |
Protected Member Functions | |
void | save (const std::string &filename) const |
Save generator data to a file. | |
void | load (const std::string &filename) |
Read generator data from a file. | |
Protected Attributes | |
GF2mat | H_enc |
Preprocessed parity check matrix. | |
int | N |
Codeword length = H_enc.cols(). | |
int | M |
Number of parity check bits = H_enc.rows(). | |
int | K |
Number of information bits = N-M. | |
int | Z |
Expansion factor. | |
bool | init_flag |
True if generator is initialized. | |
std::string | type |
Generator type. |