tomerfiliba-org/reedsolomon

Question Possible Systematic Generator Matrix from field generator polynomial?

pkiulian opened this issue · 1 comments

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?

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.