- property galois.BCH.k : int
The message size
of the code. This is also called the code dimension.Examples
Construct a binary
code.In [1]: bch = galois.BCH(15, 7); bch Out[1]: <BCH Code: [15, 7, 5] over GF(2)> In [2]: bch.k Out[2]: 7
Construct a
code over .In [3]: bch = galois.BCH(26, 14, field=galois.GF(3)); bch Out[3]: <BCH Code: [26, 14, 7] over GF(3)> In [4]: bch.k Out[4]: 14