np.subtract¶
- np.subtract(x, y)[source]¶
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([ 4, 23, 5, 6, 23, 17, 14, 15, 4, 16], order=31) In [3]: y = GF.Random(10); y Out[3]: GF([ 1, 30, 28, 10, 4, 14, 29, 29, 28, 15], order=31) In [4]: np.subtract(x, y) Out[4]: GF([ 3, 24, 8, 27, 19, 3, 16, 17, 7, 1], order=31) In [5]: x - y Out[5]: GF([ 3, 24, 8, 27, 19, 3, 16, 17, 7, 1], order=31)