np.linalg.det

np.linalg.det(A)

Computes the determinant of the matrix.

References

Examples

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

In [2]: A = GF.Random((2,2)); A
Out[2]: 
GF([[ 3,  1],
    [30,  4]], order=31)

In [3]: np.linalg.det(A)
Out[3]: GF(13, order=31)

In [4]: A[0,0]*A[1,1] - A[0,1]*A[1,0]
Out[4]: GF(13, order=31)