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([ 3, 30, 8, 11, 25, 17, 2, 16, 5, 25], order=31) In [3]: y = GF.Random(10); y Out[3]: GF([ 3, 28, 20, 4, 9, 27, 17, 16, 30, 30], order=31) In [4]: np.subtract(x, y) Out[4]: GF([ 0, 2, 19, 7, 16, 21, 16, 0, 6, 26], order=31) In [5]: x - y Out[5]: GF([ 0, 2, 19, 7, 16, 21, 16, 0, 6, 26], order=31)