You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Apology11
changed the title
Galois field creation parameter check
Galois field creation: parameter check
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.
The text was updated successfully, but these errors were encountered: