np.outer

np.outer(a, b)

Returns the outer product of two Galois field arrays.

References

Examples

In [1]: GF = galois.GF(31)

In [2]: a = GF.Random(3); a
Out[2]: GF([ 3,  1, 30], order=31)

In [3]: b = GF.Random(3); b
Out[3]: GF([ 1, 17, 11], order=31)

In [4]: np.outer(a, b)
Out[4]: 
GF([[ 3, 20,  2],
    [ 1, 17, 11],
    [30, 14, 20]], order=31)