mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
use larger number to disable paths
This commit is contained in:
parent
ae0a749d08
commit
44ed48ab84
2 changed files with 4 additions and 4 deletions
|
|
@ -287,7 +287,7 @@ public:
|
|||
int count = 0;
|
||||
metric[0] = 0;
|
||||
for (int k = 1; k < TYPE::SIZE; ++k)
|
||||
metric[k] = 1000;
|
||||
metric[k] = 1000000;
|
||||
int length = 1 << level;
|
||||
for (int i = 0; i < length; ++i)
|
||||
soft[length+i] = vdup<TYPE>(codeword[i]);
|
||||
|
|
|
|||
|
|
@ -113,9 +113,9 @@ struct PolarParityNode<TYPE, 0>
|
|||
*parity = PH::one();
|
||||
for (int k = 0; k < TYPE::SIZE; ++k)
|
||||
if (chk.v[k] < 0)
|
||||
fork.v[2*k] = 1000;
|
||||
fork.v[2*k] = 1000000;
|
||||
else
|
||||
fork.v[2*k+1] = 1000;
|
||||
fork.v[2*k+1] = 1000000;
|
||||
}
|
||||
auto perm = vorder(fork);
|
||||
for (int k = 0; k < TYPE::SIZE; ++k)
|
||||
|
|
@ -352,7 +352,7 @@ public:
|
|||
PATH metric[TYPE::SIZE];
|
||||
metric[0] = 0;
|
||||
for (int k = 1; k < TYPE::SIZE; ++k)
|
||||
metric[k] = 1000;
|
||||
metric[k] = 1000000;
|
||||
int length = 1 << level;
|
||||
for (int i = 0; i < length; ++i)
|
||||
soft[length+i] = vdup<TYPE>(codeword[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue