Class for storing H or G matrix. More...
#include <gnuradio/fec/ldpc_G_matrix.h>
Public Types | |
typedef std::shared_ptr< ldpc_G_matrix > | sptr |
Public Member Functions | |
void | encode (unsigned char *outbuffer, const unsigned char *inbuffer) const override=0 |
Encode inbuffer with LDPC H matrix into outbuffer . More... | |
void | decode (unsigned char *outbuffer, const float *inbuffer, unsigned int frame_size, unsigned int max_iterations) const override=0 |
Decode inbuffer with LDPC H matrix into outbuffer . More... | |
unsigned int | n () const override=0 |
Get the codeword length n. More... | |
unsigned int | k () const override=0 |
Get the information word length k. More... | |
Public Member Functions inherited from gr::fec::code::fec_mtrx | |
virtual | ~fec_mtrx () |
Static Public Member Functions | |
static sptr | make (const std::string filename) |
Constructor given alist file. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from gr::fec::code::fec_mtrx | |
fec_mtrx (void) | |
Class for storing H or G matrix.
This class stores a matrix variable, specifically either a:
1) Generator matrix, G, in the standard format G = [I P], where I is an identity matrix and P is the parity submatrix.
or
2) Parity matrix, H, in the standard format H = [P' I], where P' is the transpose of the parity submatrix and I is an identity matrix.
This variable can used by the ldpc_gen_mtrx_encoder and ldpc_bit_flip_decoder classes.
typedef std::shared_ptr<ldpc_G_matrix> gr::fec::code::ldpc_G_matrix::sptr |
|
overridepure virtual |
Decode inbuffer
with LDPC H matrix into outbuffer
.
Implements gr::fec::code::fec_mtrx.
|
overridepure virtual |
Encode inbuffer
with LDPC H matrix into outbuffer
.
Implements gr::fec::code::fec_mtrx.
|
overridepure virtual |
Get the information word length k.
Implements gr::fec::code::fec_mtrx.
|
static |
Constructor given alist file.
filename | Name of an alist file to use. The alist format is described at: http://www.inference.phy.cam.ac.uk/mackay/codes/alist.html |
|
overridepure virtual |
Get the codeword length n.
Implements gr::fec::code::fec_mtrx.