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

Method _encode

src/Module/Encoder/Polar/Encoder_polar_sys.cpp:28–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27template<typename B>
28void
29Encoder_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"

Callers

nothing calls this directly

Calls 2

convertMethod · 0.45
light_encodeMethod · 0.45

Tested by

no test coverage detected