np.matmul

np.matmul(a, b)

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([[22, 23,  9],
    [27, 27, 24],
    [ 7, 28, 30]], order=31)

In [3]: B = GF.Random((3,3)); B
Out[3]: 
GF([[15, 15, 25],
    [ 2, 29, 16],
    [21, 20, 29]], order=31)

In [4]: np.matmul(A, B)
Out[4]: 
GF([[ 7, 30,  1],
    [ 2, 25,  5],
    [16, 29,  5]], order=31)

In [5]: A @ B
Out[5]: 
GF([[ 7, 30,  1],
    [ 2, 25,  5],
    [16, 29,  5]], order=31)