spkit.data
.primitive_polynomials¶
- spkit.data.primitive_polynomials(fname='primitive_polynomials_GF2_dict.txt')¶
List of Primitive Polynomials as dictionary
Key of dictionary is the order of polynomials, from 2, till 31
- Parameters:
- Returns:
- plist: List of all Primitive Polynomials as dictionary for each polynomial order
Examples
>>> #sp.data.primitive_polynomials >>> import spkit as sp >>> plist = sp.data.primitive_polynomials() >>> pplist = plist[5] >>> print(pplist) [[5, 2], [5, 4, 2, 1], [5, 4, 3, 2]]