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([[30, 29], [27, 29]], order=31) In [3]: np.linalg.det(A) Out[3]: GF(25, order=31) In [4]: A[0,0]*A[1,1] - A[0,1]*A[1,0] Out[4]: GF(25, order=31)