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