np.add

np.add(x, y)

Adds two Galois field arrays element-wise.

References

Examples

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

In [2]: x = GF.Random(10); x
Out[2]: GF([28, 21, 24, 11, 26, 12,  9, 19,  8,  1], order=31)

In [3]: y = GF.Random(10); y
Out[3]: GF([ 7, 13,  1, 19, 19,  8, 18, 20, 10,  5], order=31)

In [4]: np.add(x, y)
Out[4]: GF([ 4,  3, 25, 30, 14, 20, 27,  8, 18,  6], order=31)

In [5]: x + y
Out[5]: GF([ 4,  3, 25, 30, 14, 20, 27,  8, 18,  6], order=31)