| 26 | |
| 27 | template<typename B> |
| 28 | void |
| 29 | Encoder_polar_sys<B>::_encode(const B* U_K, B* X_N, const size_t /*frame_id*/) |
| 30 | { |
| 31 | this->convert(U_K, X_N); |
| 32 | |
| 33 | // first time encode |
| 34 | this->light_encode(X_N); |
| 35 | |
| 36 | for (auto i = 0; i < this->N; i++) |
| 37 | X_N[i] = (B)(!this->frozen_bits[i]) && X_N[i]; |
| 38 | |
| 39 | // second time encode because of systematic encoder |
| 40 | this->light_encode(X_N); |
| 41 | } |
| 42 | |
| 43 | // ==================================================================================== explicit template instantiation |
| 44 | #include "Tools/types.h" |
nothing calls this directly
no test coverage detected