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([ 5, 11, 27, 21, 15,  2,  3,  0, 30,  1], order=31)

In [3]: y = GF.Random(10); y
Out[3]: GF([25, 13, 14, 15, 25, 10, 19, 21, 10, 13], order=31)

In [4]: np.subtract(x, y)
Out[4]: GF([11, 29, 13,  6, 21, 23, 15, 10, 20, 19], order=31)

In [5]: x - y
Out[5]: GF([11, 29, 13,  6, 21, 23, 15, 10, 20, 19], order=31)