galois.GFp_factory

galois.GFp_factory(p, rebuild=False)[source]

Factory function to construct Galois field array classes of type GF(p).

Parameters
  • p (int) – The prime characteristic of the field GF(p).

  • rebuild (bool, optional) – A flag to force a rebuild of the class and its lookup tables. Default is False which will return the cached, previously-built class if it exists.

Returns

A new Galois field class that is a sublcass of galois.GFp.

Return type

galois.GFp