| 38 | |
| 39 | template<typename B, typename R> |
| 40 | void |
| 41 | Decoder_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 | |
| 63 | template<typename B, typename R> |
| 64 | int |
nothing calls this directly
no outgoing calls
no test coverage detected