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

Method _load

src/Module/Decoder/Repetition/Decoder_repetition.cpp:40–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39template<typename B, typename R>
40void
41Decoder_repetition<B, R>::_load(const R* Y_N)
42{
43 if (!buffered_encoding)
44 {
45 for (auto i = 0; i < this->K; i++)
46 {
47 const auto off1 = i * (rep_count + 1);
48 const auto off2 = off1 + 1;
49
50 sys[i] = Y_N[off1];
51 for (auto j = 0; j < rep_count; j++)
52 par[j * this->K + i] = Y_N[off2 + j];
53 }
54 }
55 else
56 {
57 std::copy(Y_N, Y_N + this->K, sys.begin());
58 for (auto i = 0; i < rep_count; i++)
59 std::copy(Y_N + (i + 1) * this->K, Y_N + (i + 2) * this->K, par.begin() + (i + 0) * this->K);
60 }
61}
62
63template<typename B, typename R>
64int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected