Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor comments in cython polar #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/cython_polar/src/codec_polar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ std::vector<int> polar_encode(const int k, const int n,
* @param k The number of information bits
* @param n The codeword length
* @param frozen_bits std::vector<bool>, frozen bits (length k)
* @param info_bits std::vector<int>, information bits (length k)
* @param info_bits std::vector<std::vector<int>>, information bits (length k)
* @return auto Encoded codewords, std::vector<int> of length n
*/
std::vector<std::vector<int>>
Expand Down Expand Up @@ -104,7 +104,7 @@ std::vector<int> polar_decode(const int k, const int n,
* @param k The number of information bits
* @param n The codeword length
* @param frozen_bits std::vector<bool>, frozen bits (length k)
* @param received std::vector<float> soft symbols, BPSK, n_frame rows, n
* @param received std::vector<std::vector<float>> soft symbols, BPSK, n_frame rows, n
* columns
* @return auto Decoded information bits, std::vector<std::vector<int>> of
* n_frame rows, k columns
Expand All @@ -116,7 +116,7 @@ polar_decode_multiple(const int k, const int n,
// populate vectors
std::vector<std::vector<int>> decoded_bits;

// encode
// decode
aff3ct::module::Decoder_polar_SC_naive<int> polar_decoder(k, n, frozen_bits);
for (auto frame : received) {
std::vector<int> decoded(k);
Expand Down