Class for storing H or G matrix. More...
#include <gnuradio/fec/ldpc_G_matrix.h>
Public Types | |
typedef boost::shared_ptr < ldpc_G_matrix > | sptr |
Public Member Functions | |
virtual void | encode (unsigned char *outbuffer, const unsigned char *inbuffer) const =0 |
Encode inbuffer with LDPC H matrix into outbuffer . More... | |
virtual void | decode (unsigned char *outbuffer, const float *inbuffer, unsigned int frame_size, unsigned int max_iterations) const =0 |
Decode inbuffer with LDPC H matrix into outbuffer . More... | |
![]() | |
virtual | ~fec_mtrx () |
virtual unsigned int | n () const =0 |
Get the codeword length n. More... | |
virtual unsigned int | k () const =0 |
Get the information word length k. More... | |
Static Public Member Functions | |
static sptr | make (const std::string filename) |
Constructor given alist file. More... | |
Additional Inherited Members | |
![]() | |
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 boost::shared_ptr<ldpc_G_matrix> gr::fec::code::ldpc_G_matrix::sptr |
|
pure virtual |
Decode inbuffer
with LDPC H matrix into outbuffer
.
Implements gr::fec::code::fec_mtrx.
|
pure virtual |
Encode inbuffer
with LDPC H matrix into outbuffer
.
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 |