np.linalg.det

np.linalg.det(A)[source]

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([[17,  1],
    [25, 29]], order=31)

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

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