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

Method _encode

src/Module/Encoder/Polar_MK/Encoder_polar_MK_sys.cpp:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40template<typename B>
41void
42Encoder_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"

Callers

nothing calls this directly

Calls 2

convertMethod · 0.45
light_encodeMethod · 0.45

Tested by

no test coverage detected