np.add

np.add(x, y)[source]

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([18, 28, 28, 20, 15, 19, 11, 16,  2,  5], order=31)

In [3]: y = GF.Random(10); y
Out[3]: GF([26, 22, 17,  2, 23,  5, 12,  0, 13, 10], order=31)

In [4]: np.add(x, y)
Out[4]: GF([13, 19, 14, 22,  7, 24, 23, 16, 15, 15], order=31)

In [5]: x + y
Out[5]: GF([13, 19, 14, 22,  7, 24, 23, 16, 15, 15], order=31)