property galois.BCH.is_primitive : bool

Indicates if the BCH code is primitive, meaning \(n = 2^m - 1\).

Examples

In [1]: bch = galois.BCH(15, 7); bch
Out[1]: <BCH Code: [15, 7, 5] over GF(2)>

In [2]: bch.is_primitive
Out[2]: True