You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there exists a function isposdef.
I believe that it would be good to create a function ispossemidef, checking whether a matrix is positive semi-definite.
Any ideas on what would be a good way to implement such a method?
The text was updated successfully, but these errors were encountered:
ignace-computing
changed the title
Feature request: issemidef function
Feature request: ispossemidef function
Mar 3, 2025
This is quite difficult to check reliably. The basic issue is that roundoff errors make it virtually impossible to distinguish a matrix with zero eigenvalues from one with slightly negative eigenvalues.
In principle, we could do something similar to JuliaLang/julia#35057, i.e. checking that the eigenvalues are $\ge -\lambda_{\max} \epsilon$ for some relative tolerance $\epsilon$. Note that this would be much slower than the Cholesky-based approach of isposdef.
See also many previous discussions of this and related topics:
Currently, there exists a function
isposdef
.I believe that it would be good to create a function
ispossemidef
, checking whether a matrix is positive semi-definite.Any ideas on what would be a good way to implement such a method?
The text was updated successfully, but these errors were encountered: