np.subtract

np.subtract(x, y)

Subtracts two Galois field arrays element-wise.

References

Examples

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

In [2]: x = GF.Random(10); x
Out[2]: GF([29, 25,  9, 29,  2, 26, 17, 12, 15, 25], order=31)

In [3]: y = GF.Random(10); y
Out[3]: GF([10, 25, 10, 29, 21, 21,  6,  3,  1, 29], order=31)

In [4]: np.subtract(x, y)
Out[4]: GF([19,  0, 30,  0, 12,  5, 11,  9, 14, 27], order=31)

In [5]: x - y
Out[5]: GF([19,  0, 30,  0, 12,  5, 11,  9, 14, 27], order=31)