Skip to content
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

Broaden signature of eigen and eigvals to AbstractMatrix to allow for Adjoint and Transpose input. #31117

Merged
merged 3 commits into from
Jun 19, 2019

Conversation

andreasnoack
Copy link
Member

The is a very simple fix of JuliaLang/LinearAlgebra.jl#551. Eventually, we might be able to avoid materializing the adjoint, but the benefit will in most cases be very limited so I think we should add the simple fix right away.

Fixes JuliaLang/LinearAlgebra.jl#551

for Adjoint and Transpose input.

Fixes #28714
@andreasnoack andreasnoack added the linear algebra Linear algebra label Feb 20, 2019
@kragol
Copy link

kragol commented Feb 20, 2019

Thanks @andreasnoack for addressing the issue. You may also want to look at the eigen(A,B) methods for generalized eigenvalue decomposition (or even some other functions like cholesky, lq or schur which have issues with Adjoint or Transpose types too).

Copy link
Contributor

@nickrobinson251 nickrobinson251 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes https://github.com/JuliaLang/julia/issues/31843 too

So maybe worth testing that case?

stdlib/LinearAlgebra/test/eigen.jl Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear algebra Linear algebra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LinearAlgebra.eigen fails on Transposed / Adjoint matrices (Julia 1.0.0)
4 participants