-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix eigvals,eigvecs,eigen
for Diagonal{Matrix}
#50897
Conversation
Bump @dkarrasch @stevengj |
Sorry for the delay; I'll review this next. For the tests that involve multiplication, we should indeed have approximate tests. For tests of functionality where you know you've only shuffled exact data around, exact tests are fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small comments, otherwise LGTM. The crucial thing was to be able to multiply the diagonal matrix of matrices with the eigenvector matrix. That works nicely, as the tests show.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the review. Will try to update this soonish.
Just in case: if you agree with the suggestions, you can switch to the "Files changed" tab, then "add suggestion to batch" for the agreed suggestions, and then push the commit. No need to get back to your own codebase. |
Co-authored-by: Daniel Karrasch <daniel.karrasch@posteo.de>
Thanks @fatteneder for your contribution! |
Fixes JuliaLang/LinearAlgebra.jl#594.
There has been another attempt on fixing this #31509, but that seemed to have stopped two years ago.
@stevengj @dkarrasch Since you were involved in the issue and the other PR, may I ask you to also review this?
I hope I understood correctly how the fix in JuliaLang/LinearAlgebra.jl#594 was meant to work:
I implemented it such that the results of
eigvals(D), eigvecs(D), eigen(D)
behave as in the case with ordinary matrices, e.g.if
D
is a block diagonal matrix thenCloses #31509.