| 62 | |
| 63 | template<typename B> |
| 64 | void |
| 65 | Encoder_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 | |
| 81 | template<typename B> |
| 82 | void |
nothing calls this directly
no outgoing calls
no test coverage detected