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([24, 28, 24, 23, 20, 11, 27,  7, 11, 14], order=31)

In [3]: y = GF.Random(10); y
Out[3]: GF([16, 26, 11,  8, 27, 17, 12, 17, 17, 20], order=31)

In [4]: np.add(x, y)
Out[4]: GF([ 9, 23,  4,  0, 16, 28,  8, 24, 28,  3], order=31)

In [5]: x + y
Out[5]: GF([ 9, 23,  4,  0, 16, 28,  8, 24, 28,  3], order=31)