galois.ReedSolomon.__repr__() str

A terse representation of the Reed-Solomon code.

Examples

Construct a primitive, narrow-sense \(\textrm{RS}(255, 223)\) code over \(\mathrm{GF}(2^8)\).

In [1]: rs = galois.ReedSolomon(255, 223)

In [2]: rs
Out[2]: <Reed-Solomon Code: [255, 223, 33] over GF(2^8)>

Construct a non-primitive, narrow-sense \(\textrm{RS}(85, 65)\) code over \(\mathrm{GF}(2^8)\).

In [3]: rs = galois.ReedSolomon(85, 65, field=galois.GF(2**8))

In [4]: rs
Out[4]: <Reed-Solomon Code: [85, 65, 21] over GF(2^8)>