galois.is_extension_field

class galois.is_extension_field(obj)[source]

Determines if the object is a Galois field array class of type \(\mathrm{GF}(p^m)\) created from galois.GF() (or galois.Field()) of one of its instances.

Parameters

obj (type) – Any object.

Returns

True if obj is a Galois field array class of type \(\mathrm{GF}(p^m)\) generated from galois.GF() (or galois.Field()) or one of its instances.

Return type

bool