galois.BCH.__repr__() str

A terse representation of the BCH code.

Examples

Construct a binary primitive BCH(15,7) code.

In [1]: bch = galois.BCH(15, 7)

In [2]: bch
Out[2]: <BCH Code: [15, 7, 5] over GF(2)>

Construct a primitive BCH(26,14) code over GF(3).

In [3]: bch = galois.BCH(26, 14, field=galois.GF(3))

In [4]: bch
Out[4]: <BCH Code: [26, 14, 7] over GF(3)>

Construct a non-primitive BCH(13,4) code over GF(3).

In [5]: bch = galois.BCH(13, 4, field=galois.GF(3))

In [6]: bch
Out[6]: <BCH Code: [13, 4, 7] over GF(3)>