- property galois.ReedSolomon.G : FieldArray
The generator matrix \(\mathbf{G}\) with shape \((k, n)\).
Examples¶
In [1]: rs = galois.ReedSolomon(15, 9); rs Out[1]: <Reed-Solomon Code: [15, 9, 7] over GF(2^4)> In [2]: rs.G Out[2]: GF([[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 10, 3, 5, 13, 1, 8], [ 0, 1, 0, 0, 0, 0, 0, 0, 0, 15, 1, 13, 7, 5, 13], [ 0, 0, 1, 0, 0, 0, 0, 0, 0, 11, 11, 13, 3, 10, 7], [ 0, 0, 0, 1, 0, 0, 0, 0, 0, 3, 2, 3, 8, 4, 7], [ 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 10, 10, 6, 15, 9], [ 0, 0, 0, 0, 0, 1, 0, 0, 0, 5, 11, 1, 5, 15, 11], [ 0, 0, 0, 0, 0, 0, 1, 0, 0, 2, 11, 10, 7, 14, 8], [ 0, 0, 0, 0, 0, 0, 0, 1, 0, 15, 9, 5, 8, 15, 2], [ 0, 0, 0, 0, 0, 0, 0, 0, 1, 7, 9, 3, 12, 10, 12]], order=2^4)