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([14, 5, 21, 17, 20, 3, 17, 1, 13, 20], order=31) In [3]: y = GF.Random(10); y Out[3]: GF([20, 6, 29, 5, 16, 29, 5, 11, 17, 24], order=31) In [4]: np.subtract(x, y) Out[4]: GF([25, 30, 23, 12, 4, 5, 12, 21, 27, 27], order=31) In [5]: x - y Out[5]: GF([25, 30, 23, 12, 4, 5, 12, 21, 27, 27], order=31)