gr::fec::code::ldpc_H_matrix
gr::fec::code::fec_mtrx
std::enable_shared_from_this< ldpc_H_matrix >
gnuradio/fec/ldpc_H_matrix.h
std::shared_ptr< ldpc_H_matrix > typedef std::shared_ptr<ldpc_H_matrix> gr::fec::code::ldpc_H_matrix::sptr sptr gr::fec::code::ldpc_H_matrix::sptr
sptr static sptr gr::fec::code::ldpc_H_matrix::make (const std::string filename, unsigned int gap) make gr::fec::code::ldpc_H_matrix::make const std::string filename unsigned int gap

Constructor given alist file and gap.

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

gap

A property of the matrix being used. For alist files distributed with GNU Radio, this value is specified in the alist filename. The gap is found during the matrix preprocessing algorithm. It is equal to the number of rows in submatrices E, C and D.

void void gr::fec::code::ldpc_H_matrix::encode (unsigned char *outbuffer, const unsigned char *inbuffer) const override=0 encode gr::fec::code::ldpc_H_matrix::encode encode unsigned char * outbuffer const unsigned char * inbuffer

Encode `inbuffer` with LDPC H matrix into `outbuffer`.

void void gr::fec::code::ldpc_H_matrix::decode (unsigned char *outbuffer, const float *inbuffer, unsigned int frame_size, unsigned int max_iterations) const override=0 decode gr::fec::code::ldpc_H_matrix::decode decode unsigned char * outbuffer const float * inbuffer unsigned int frame_size unsigned int max_iterations

Decode `inbuffer` with LDPC H matrix into `outbuffer`.

unsigned int unsigned int gr::fec::code::ldpc_H_matrix::n () const override=0 n gr::fec::code::ldpc_H_matrix::n n

Get the codeword length n.

unsigned int unsigned int gr::fec::code::ldpc_H_matrix::k () const override=0 k gr::fec::code::ldpc_H_matrix::k k

Get the information word length k.

Parity check matrix in Richardson/Urbanke format.

This class stores a matrix for use with the ldpc_encoder class. It must be of the specific format described by Richardson and Urbanke in Appendix A of their book: Modern Coding Theory (ISBN 978-0-521-85229-6). The form is: \[\left[\begin{array}{ccc} T & A & B\\ E & C & D \end{array}\right]\] This class can be used with the ldpc_bit_flip_decoder.

To convert a parity check matrix to this format, use the python functions in: /lib/python2.7/dist-packages/gnuradio/fec/LDPC/Generate_LDPC_matrix.py.

gr::fec::code::fec_mtrx
gr::fec::code::ldpc_H_matrix
std::enable_shared_from_this< ldpc_H_matrix >
gr::fec::code::fec_mtrx
gr::fec::code::ldpc_H_matrix
std::enable_shared_from_this< ldpc_H_matrix >
- gr::fec::code::ldpc_H_matrix
  decode
- gr::fec::code::ldpc_H_matrix
  encode
- gr::fec::code::ldpc_H_matrix
  fec_mtrx
- gr::fec::code::ldpc_H_matrix
  k
- gr::fec::code::ldpc_H_matrix
  make
- gr::fec::code::ldpc_H_matrix
  n
- gr::fec::code::ldpc_H_matrix
  sptr
- gr::fec::code::ldpc_H_matrix
  ~fec_mtrx