MCPcopy Create free account
hub / github.com/aff3ct/aff3ct / Encoder_LDPC_QC

Method Encoder_LDPC_QC

src/Module/Encoder/LDPC/QC/Encoder_LDPC_QC.cpp:21–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20template<typename B>
21Encoder_LDPC_QC<B>::Encoder_LDPC_QC(const int K, const int N, const int Zc, const char* file_name, const int K_LDPC)
22 : Encoder_LDPC<B>(K, N)
23 , Zc(Zc)
24 , file_name(file_name)
25 , G(K / Zc)
26 , K_LDPC(K_LDPC == -1 ? K : K_LDPC)
27{
28 if (this->K_LDPC < this->K)
29 {
30 std::stringstream message;
31 message << "'K_LDPC' has to be greater than 'K' ('K_LDPC' = " << this->K_LDPC << ", 'K' = " << this->K << ").";
32 throw spu::tools::invalid_argument(__FILE__, __LINE__, __func__, message.str());
33 }
34
35 const std::string name = "Encoder_LDPC_QC";
36 this->set_name(name);
37 this->G = this->read_G_file(this->file_name);
38}
39
40template<typename B>
41Encoder_LDPC_QC<B>*

Callers

nothing calls this directly

Calls 1

read_G_fileMethod · 0.95

Tested by

no test coverage detected