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

Method _encode

src/Module/Encoder/RA/Encoder_RA.cpp:64–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63template<typename B>
64void
65Encoder_RA<B>::_encode(const B* U_K, B* X_N, const size_t frame_id)
66{
67 // repetition
68 for (auto i = 0; i < this->K; i++)
69 for (auto j = 0; j < rep_count; j++)
70 U[i * rep_count + j] = U_K[i];
71
72 this->interleaver->interleave(U.data(), tmp_X_N.data(), frame_id, false);
73
74 // accumulation
75 for (auto i = 1; i < this->N; i++)
76 tmp_X_N[i] = tmp_X_N[i - 1] ^ tmp_X_N[i];
77
78 std::copy(tmp_X_N.begin(), tmp_X_N.end(), X_N);
79}
80
81template<typename B>
82void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected