np.divide

np.divide(x, y)

Divides two Galois field arrays element-wise.

References

Examples

In [1]: GF = galois.GF(31)

In [2]: x = GF.Random(10); x
Out[2]: GF([ 7, 22, 29,  3,  3, 10,  2, 17,  3, 30], order=31)

In [3]: y = GF.Random(10, low=1); y
Out[3]: GF([20,  1, 16,  7, 27, 16,  2,  3, 15,  5], order=31)

In [4]: z = np.divide(x, y); z
Out[4]: GF([ 5, 22, 27, 27,  7, 20,  1, 16, 25,  6], order=31)

In [5]: y * z
Out[5]: GF([ 7, 22, 29,  3,  3, 10,  2, 17,  3, 30], order=31)
In [6]: np.true_divide(x, y)
Out[6]: GF([ 5, 22, 27, 27,  7, 20,  1, 16, 25,  6], order=31)

In [7]: x / y
Out[7]: GF([ 5, 22, 27, 27,  7, 20,  1, 16, 25,  6], order=31)

In [8]: np.floor_divide(x, y)
Out[8]: GF([ 5, 22, 27, 27,  7, 20,  1, 16, 25,  6], order=31)

In [9]: x // y
Out[9]: GF([ 5, 22, 27, 27,  7, 20,  1, 16, 25,  6], order=31)