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

Method _encode

src/Module/Encoder/LDPC/Encoder_LDPC.cpp:105–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104template<typename B>
105void
106Encoder_LDPC<B>::_encode(const B* U_K, B* X_N, const size_t /*frame_id*/)
107{
108 for (auto i = 0; i < this->N; i++)
109 {
110 X_N[i] = 0;
111 auto& links = this->G.get_cols_from_row(i);
112 for (unsigned j = 0; j < links.size(); j++)
113 X_N[i] += U_K[links[j]];
114 X_N[i] &= (B)1; // modulo 2
115 }
116}
117
118template<typename B>
119bool

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected