galois.typing.IterableLike

galois.typing.IterableLike

A Union representing iterable objects that can be coerced into a Galois field array.

Union

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)
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: Apr 22, 2022