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

Galois field creation: parameter check #151

Open
Apology11 opened this issue Nov 8, 2021 · 1 comment
Open

Galois field creation: parameter check #151

Apology11 opened this issue Nov 8, 2021 · 1 comment

Comments

@Apology11
Copy link

Apology11 commented Nov 8, 2021

Hi everyone,

I want to use the RS_polynomial_generator (with N=128).
This internally uses the Galois class.
As it can be seen in the implementation the parameter m is initialized with (int)std::ceil(std::log2(N)).
However later the parameter is checked (here) to be m != (int)std::ceil(std::log2(N +1)).
So shouldn't the initialization be (int)std::ceil(std::log2(N+1)) and the check be removed or am I missing something here?

I am getting the issue "'m' has to be equal to ceil(log2('N' +1)) ('m' = 7, 'N' = 128)." when using N = 128.

Thank you for your help.

@Apology11 Apology11 changed the title Galois field creation parameter check Galois field creation: parameter check Nov 8, 2021
@Volshebnik-Wisard
Copy link

Volshebnik-Wisard commented Mar 23, 2024

Hello, can I see your code? In my case, the Reed-Solomon encoder (Encoder_RS) throws an unhandled exception at runtime.
123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants