9#ifndef INCLUDED_ldpc_H_matrix_H
10#define INCLUDED_ldpc_H_matrix_H
38 public std::enable_shared_from_this<ldpc_H_matrix>
41 typedef std::shared_ptr<ldpc_H_matrix>
sptr;
55 static sptr make(
const std::string filename,
unsigned int gap);
58 void encode(
unsigned char* outbuffer,
59 const unsigned char* inbuffer)
const override = 0;
62 void decode(
unsigned char* outbuffer,
63 const float* inbuffer,
64 unsigned int frame_size,
65 unsigned int max_iterations)
const override = 0;
69 unsigned int n()
const override = 0;
73 unsigned int k()
const override = 0;
84 virtual gr::fec::code::fec_mtrx_sptr get_base_sptr() = 0;
Base class for FEC matrix objects.
Definition: fec_mtrx.h:124
Parity check matrix in Richardson/Urbanke format.
Definition: ldpc_H_matrix.h:39
std::shared_ptr< ldpc_H_matrix > sptr
Definition: ldpc_H_matrix.h:41
static sptr make(const std::string filename, unsigned int gap)
Constructor given alist file and gap.
void encode(unsigned char *outbuffer, const unsigned char *inbuffer) const override=0
Encode inbuffer with LDPC H matrix into outbuffer.
unsigned int k() const override=0
Get the information word length k.
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.
unsigned int n() const override=0
Get the codeword length n.
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29