christiansiegel / coding-theory-algorithms

Python library able to solve typical coding theory textbook exercises.
45 stars 12 forks source link

create bch(n=127, k=92) #1

Open mojganaz opened 5 years ago

mojganaz commented 5 years ago

How can I use this code to generate a bch code with n = 127, k = 92? I am not sure how to define a GF(2^7) and how to use the bch to encode a message. I really appreciate your help.

varun19299 commented 3 years ago

I'm not sure if this repo includes generating polynomials, but in MATLAB it would be straightforward to do this as: https://www.mathworks.com/help/comm/ref/bchgenpoly.html.

varun19299 commented 3 years ago

Here's a Galois field library that can accomplish this: https://github.com/mhostetter/galois#numpy-ufunc-methods.