Determine if the determinant is exactly zero

I have many 10 by 10 (0,1) -matrices, and I would like to determine which have the determinant exactly 0 (i.e., singular). Using scipy.linalg.det, I get a floating point number that I have to check to make sure it's close to zero. Is it possible to accurately perform the calculations so that I can be sure that I do not find false positives?

On the other hand, maybe there are some guarantees regarding the smallest eigenvalue that can be used to ensure that the floating point method never makes false positives?

+4
source share
5 answers

, , . :

scipy.allclose(det, 0)

kwargs.


( 10x10 0,1 ) .

, : 10- 0/1 "" , . "" /, 0,1.

10- ;)

+3

, . 0 1, , , ( /// -1, 0 1, ).

0, .

, ( ) .

. , , .

EDIT: , , 0,1, . . , det(), , , , det (M) == 0.0 , .

+3
+1

1 0, 1. , 0.

, -, sympy .

0

what about test batches during a game with arg tolerance, then select the maximum tolerance allowed, rinse and repeat: http://docs.scipy.org/doc/numpy/reference/generated/numpy.allclose.html

0
source

Source: https://habr.com/ru/post/1525678/


All Articles