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([21, 10,  6,  5, 15, 16, 14, 26, 11, 18], order=31)

In [3]: y = GF.Random(10); y
Out[3]: GF([22,  3, 11,  0, 21, 13, 16,  5,  8,  3], order=31)

In [4]: np.add(x, y)
Out[4]: GF([12, 13, 17,  5,  5, 29, 30,  0, 19, 21], order=31)

In [5]: x + y
Out[5]: GF([12, 13, 17,  5,  5, 29, 30,  0, 19, 21], order=31)