21 #ifndef INCLUDED_fec_mtrx_H 22 #define INCLUDED_fec_mtrx_H 25 #include <boost/shared_ptr.hpp> 48 typedef boost::shared_ptr<matrix> matrix_sptr;
51 typedef boost::shared_ptr<fec_mtrx> fec_mtrx_sptr;
143 virtual void encode(
unsigned char* outbuffer,
144 const unsigned char* inbuffer)
const = 0;
147 virtual void decode(
unsigned char* outbuffer,
148 const float* inbuffer,
149 unsigned int frame_size,
150 unsigned int max_iterations)
const = 0;
153 virtual unsigned int n()
const = 0;
156 virtual unsigned int k()
const = 0;
int owner
Definition: fec_mtrx.h:43
double * data
Definition: fec_mtrx.h:34
FEC_API matrix_sptr generate_G_transpose(matrix_sptr H_obj)
Takes a parity check matrix (H) and returns the transpose of the generator matrix (G)...
FEC_API matrix_sptr generate_H(matrix_sptr G_obj)
Takes a generator matrix (G) and returns the parity check matrix (H).
fec_mtrx(void)
Definition: fec_mtrx.h:137
FEC_API matrix_sptr read_matrix_from_file(const std::string filename)
Read in an alist file and produce the matrix object.
FEC_API void matrix_free(matrix *x)
block_data * block
Definition: fec_mtrx.h:42
Definition: fec_mtrx.h:37
FEC_API matrix_sptr generate_G(matrix_sptr H_obj)
Takes a parity check matrix (H) and returns the generator matrix (G).
size_t tda
Definition: fec_mtrx.h:40
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
size_t size1
Definition: fec_mtrx.h:38
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:30
FEC_API void print_matrix(const matrix_sptr M, bool numpy=false)
Takes a matrix and prints it to screen.
FEC_API unsigned char encode(unsigned char *symbols, unsigned char *data, unsigned int nbytes, unsigned char encstate)
size_t size
Definition: fec_mtrx.h:33
virtual ~fec_mtrx()
Definition: fec_mtrx.h:140
FEC_API void write_matrix_to_file(const std::string filename, matrix_sptr M)
size_t size2
Definition: fec_mtrx.h:39
Base class for FEC matrix objects.
Definition: fec_mtrx.h:134
Definition: fec_mtrx.h:32
double * data
Definition: fec_mtrx.h:41