np.matmul¶
- np.matmul(a, b)[source]¶
Returns the matrix multiplication of two Galois field arrays.
References
Examples
In [1]: GF = galois.GF(31) In [2]: A = GF.Random((3,3)); A Out[2]: GF([[29, 7, 19], [23, 4, 28], [18, 18, 23]], order=31) In [3]: B = GF.Random((3,3)); B Out[3]: GF([[ 7, 6, 5], [30, 29, 17], [21, 23, 23]], order=31) In [4]: np.matmul(A, B) Out[4]: GF([[ 6, 8, 19], [ 1, 30, 21], [ 2, 12, 26]], order=31) In [5]: A @ B Out[5]: GF([[ 6, 8, 19], [ 1, 30, 21], [ 2, 12, 26]], order=31)