-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eigenvalues not sorted for almost perfectly symmetric matrix #343
Comments
If you know you should have a symmetric matrix, you are well-advised to make it perfectly symmetric so that |
...and remember that you can simply do |
I'll use Returning eigenvalues out-of-order seems to me like a somewhat opaque way to alert users that a matrix isn't perfectly symmetric. Tiny perturbations of real-valued input shouldn't drastically change the output, if possible. |
There has been discussion about putting tolerances the symmetry checks but nothing concrete has come out of it. |
Ref: discussion in #182 about approximate symmetry checks in |
Closed by JuliaLang/julia#21598. |
I'm not sure whether this qualifies as a bug, though the behavior seems undesirable. Below
A
is a matrix that is almost exactly symmetric.eigvals(A)
returns the singular values without sorting them. For perfectly symmetric matrices (e.g.,B
below), the eigenvalues are always sorted. It seems likeeigvals(A)
should sort them too, since due to numerical issues, even symmetric matrices are often not exactly symmetric.The text was updated successfully, but these errors were encountered: