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, 11, 8, 2, 11, 1, 12, 0, 22, 20], order=31) In [3]: y = GF.Random(10); y Out[3]: GF([ 7, 21, 2, 19, 24, 16, 18, 9, 19, 4], order=31) In [4]: np.subtract(x, y) Out[4]: GF([22, 21, 6, 14, 18, 16, 25, 22, 3, 16], order=31) In [5]: x - y Out[5]: GF([22, 21, 6, 14, 18, 16, 25, 22, 3, 16], order=31)