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?
scipy.linalg.det
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?
, , . :
scipy.allclose(det, 0)
kwargs.
( 10x10 0,1 ) .
, : 10- 0/1 "" , . "" † /, 0,1.
† 10- ;)
, . 0 1, , , ( /// -1, 0 1, ).
0, .
, ( ) .
. , , .
EDIT: , , 0,1, . . , det(), , , , det (M) == 0.0 , .
, , . python
numpy.linalg.cond(x, p=None)
http://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.cond.html.
. , , .., , , . . scicomp stackexchange .
1 0, 1. , 0.
, -, sympy .
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
Source: https://habr.com/ru/post/1525678/More articles:Unable to test Angular UI Typeahead with Poltergeist and PhantomJS - ruby-on-railsHow to convert RTF RT to plain or HTML in Delphi XE4? - delphiAn algorithm for finding ALL factorizations of an integer - javaSearch for all number optimization divisors - pythonIn C, how do I find the "\" character in a string? - cNLTK and WordNet classification with text blob - pythonHow to run a large SQL file in PHPMyAdmin - sqlКак использовать Scapy для определения типа беспроводного шифрования? - pythonHow to print a payload for an exception in a message stream mule - muleErrors when starting the Grunt build for the first time - javascriptAll Articles