We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The JIT-compiled decoders only use the finite field arithmetic from the first code.
import numpy as np import galois print("BCH 1") bch_1 = galois.BCH(1023, 983) message = galois.GF2.Random(bch_1.k).view(np.ndarray) codeword = bch_1.encode(message) decoded, N_corrected = bch_1.decode(codeword, errors=True) print(N_corrected) print("BCH 2") bch_2 = galois.BCH(2047, 1992) message = galois.GF2.Random(bch_2.k).view(np.ndarray) codeword = bch_2.encode(message) decoded, N_corrected = bch_2.decode(codeword, errors=True) print(N_corrected) print("BCH 1") bch_1 = galois.BCH(1023, 983) message = galois.GF2.Random(bch_1.k).view(np.ndarray) codeword = bch_1.encode(message) decoded, N_corrected = bch_1.decode(codeword, errors=True) print(N_corrected) print("BCH 2") bch_2 = galois.BCH(2047, 1992) message = galois.GF2.Random(bch_2.k).view(np.ndarray) codeword = bch_2.encode(message) decoded, N_corrected = bch_2.decode(codeword, errors=True) print(N_corrected)
$ python3 .\test_bch.py BCH 1 0 BCH 2 -1 BCH 1 0 BCH 2 -1
$ python3 .\test_bch.py BCH 1 0 BCH 2 0 BCH 1 0 BCH 2 0
The text was updated successfully, but these errors were encountered:
Add unit test to catch #483
1518169
Store BCH/RS decoders for each base/extension field pair
2019c05
Fixes #483
63f5b32
aac6a92
1823440
c3a82df
Released in v0.3.5.
Sorry, something went wrong.
No branches or pull requests
The JIT-compiled decoders only use the finite field arithmetic from the first code.
Reproducer
Actual
Expected
The text was updated successfully, but these errors were encountered: