I believe the following should be True
but returns False
for me:
PositiveSemidefiniteMatrixQ[DiagonalMatrix[{1, -10^-100}], Tolerance -> 10^-10]
As far as I can tell the Tolerance
option does nothing. An easy workaround is
PositiveSemidefiniteMatrixQ[A + tolerance*IdentityMatrix[Length@A]]
I have checked that this happens in 10.0.2 and 10.1. Is it still a bug in newer versions?
bugs
tag is reserved for questions where the problem has been vetted by this community and the observed behavior is confirmed to be a bug. Once it is agreed that the behavior is actually a bug, a moderator (or someone of similar standing) will add thebugs
tag. $\endgroup$ – march Dec 3 '15 at 5:00Tolerance -> t
can be used..." per the documentation. $\endgroup$ – ilian Dec 3 '15 at 5:25