galois.typing.IterableLike¶
- galois.typing.IterableLike¶
A
Union
representing iterable objects that can be coerced into a Galois field array.Union
Sequence
[ElementLike
]: An iterable of elements.In [1]: GF = galois.GF(3**5) In [2]: GF([17, 4]) Out[2]: GF([17, 4], order=3^5) # Mix and match integers and strings In [3]: GF([17, "x + 1"]) Out[3]: GF([17, 4], order=3^5)
Sequence
[IterableLike
]: A recursive iterable of iterables of elements.In [4]: GF = galois.GF(3**5) In [5]: GF([[17, 4], [148, 205]]) Out[5]: GF([[ 17, 4], [148, 205]], order=3^5) # Mix and match integers and strings In [6]: GF([["x^2 + 2x + 2", 4], ["x^4 + 2x^3 + x^2 + x + 1", 205]]) Out[6]: GF([[ 17, 4], [148, 205]], order=3^5)
Alias
alias of
Union
[Sequence
[Union
[int
,str
,Array
]],Sequence
[IterableLike
]]
Last update:
May 17, 2022