-
Notifications
You must be signed in to change notification settings - Fork 18
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
rs.RSCoder failed if n = 255 and k = 255 #9
Comments
It fails when k = n. I have tried it with k = n = 50 also. |
I think this is inherent to the math of Reed Solomon codes. |
ok, thanks |
Hello, yes indeed that's why it fails, but the encoder class could still check this potential error and raise a more meaningful exception when this case is detected, I reopen the issue until I get some time to add this, thanks for reporting the issue and thank you @JoelStienlet for answering :-) |
coder = rs.RSCoder(255, 255)
code = coder.encode(data, False, None, True)
If codeword and message length are 255, it is failing with error -
Codeword length n must be greater than message length k
The text was updated successfully, but these errors were encountered: