out_llrs array was being overwritten by the output LLR values of a single block. Not only does this cause the returned out_llrs array to be incorrect, it may sometimes cause an error to be thrown. This occurs because the reshape at line 253 expects the out_llrs to contain LLR values for n_blocks different blocks, but it only contains the LLR values for a single block.
This has been fixed by writing the output LLRs of each block to their corresponding position within the out_llrs array.
Coverage remained the same at 82.799% when pulling aaedc5f99fd075209ae21781e0d0f415c356a28e on euhwandy:fix-ldpc-bp-decode into 5dba9a496835313fec7076407daddcbc702dfa09 on veeresht:master.
out_llrs
array was being overwritten by the output LLR values of a single block. Not only does this cause the returnedout_llrs
array to be incorrect, it may sometimes cause an error to be thrown. This occurs because the reshape at line 253 expects theout_llrs
to contain LLR values forn_blocks
different blocks, but it only contains the LLR values for a single block.This has been fixed by writing the output LLRs of each block to their corresponding position within the
out_llrs
array.