21 #ifndef INCLUDED_ldpc_H_matrix_H
22 #define INCLUDED_ldpc_H_matrix_H
26 #include <boost/shared_ptr.hpp>
27 #include <boost/enable_shared_from_this.hpp>
50 public boost::enable_shared_from_this<ldpc_H_matrix>
53 typedef boost::shared_ptr<ldpc_H_matrix>
sptr;
67 static sptr make(
const std::string filename,
unsigned int gap);
70 virtual void encode(
unsigned char *outbuffer,
71 const unsigned char *inbuffer)
const = 0;
74 virtual void decode(
unsigned char *outbuffer,
75 const float *inbuffer,
76 unsigned int frame_size,
77 unsigned int max_iterations)
const = 0;
81 virtual unsigned int n()
const = 0;
85 virtual unsigned int k()
const = 0;
96 virtual gr::fec::code::fec_mtrx_sptr get_base_sptr() = 0;
Parity check matrix in Richardson/Urbanke format.
Definition: ldpc_H_matrix.h:49
Include this header to use the message passing features.
Definition: logger.h:131
boost::shared_ptr< ldpc_H_matrix > sptr
Definition: ldpc_H_matrix.h:53
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:30
FEC_API unsigned char encode(unsigned char *symbols, unsigned char *data, unsigned int nbytes, unsigned char encstate)
Base class for FEC matrix objects.
Definition: fec_mtrx.h:136