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([ 0, 17,  1, 27, 18,  1, 28,  1, 22, 11], order=31)

In [3]: y = GF.Random(10); y
Out[3]: GF([28, 18,  3, 26,  3, 22, 15, 10, 25, 10], order=31)

In [4]: np.subtract(x, y)
Out[4]: GF([ 3, 30, 29,  1, 15, 10, 13, 22, 28,  1], order=31)

In [5]: x - y
Out[5]: GF([ 3, 30, 29,  1, 15, 10, 13, 22, 28,  1], order=31)