| 39 | |
| 40 | template<typename B> |
| 41 | void |
| 42 | Encoder_polar_MK_sys<B>::_encode(const B* U_K, B* X_N, const size_t /*frame_id*/) |
| 43 | { |
| 44 | this->convert(U_K, X_N); |
| 45 | |
| 46 | // first time encode |
| 47 | this->light_encode(X_N); |
| 48 | |
| 49 | for (auto i = 0; i < this->N; i++) |
| 50 | X_N[i] = (B)(!this->frozen_bits[i]) && X_N[i]; |
| 51 | |
| 52 | // second time encode because of systematic encoder |
| 53 | this->light_encode(X_N); |
| 54 | } |
| 55 | |
| 56 | // ==================================================================================== explicit template instantiation |
| 57 | #include "Tools/types.h" |
nothing calls this directly
no test coverage detected