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

Question Possible Systematic Generator Matrix from field generator polynomial? #58

Open
pkiulian opened this issue Mar 29, 2023 · 1 comment
Labels

Comments

@pkiulian
Copy link

Is there a way of getting the Systematic Generator Matrix, actually Parity Matrix from the Generator Matrix from the field generator polynomial. So if I give my own field generator polynomial, can the lib return the generator matrix?

@lrq3000
Copy link
Collaborator

lrq3000 commented Mar 29, 2023

You mean this?

from reedsolo import RSCodec rs = RSCodec(10) rs.gen #result: {10: bytearray(b'\x01\xd8\xc2\x9fo\xc7^_q\x9d\xc1')}

Everything is exposed, so yes you can get the values of anything the codec generates, even internal variables. This is done on purpose, so that you can easily check the maths or reproduce with another implementation, since the main goal of this python module is to provide a universal Reed-Solomon codec, interoperable with any other (burst-type) Reed-Solomon implementation.

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

No branches or pull requests

2 participants