-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Can't compute eigenvalues of Hermitian Diagonal matrix for generic types #1070
Comments
I'm not sure what to do here. None of the functions in the stack trace or the julia> using LinearAlgebra
julia> using GenericLinearAlgebra
julia> m = Hermitian(Diagonal(randn(Float64,2)))
2×2 Hermitian{Float64, Diagonal{Float64, Vector{Float64}}}:
-0.395806 ⋅
⋅ -1.38742
julia> eigvals(m)
ERROR: MethodError: no method matching symtriUpper!(::Diagonal{Float64, Vector{Float64}})
Closest candidates are:
symtriUpper!(::StridedMatrix{T}, ::Any, ::Any) where T
@ GenericLinearAlgebra ~/.julia/packages/GenericLinearAlgebra/ljyYY/src/eigenSelfAdjoint.jl:519
symtriUpper!(::StridedMatrix{T}, ::Any) where T
@ GenericLinearAlgebra ~/.julia/packages/GenericLinearAlgebra/ljyYY/src/eigenSelfAdjoint.jl:519
symtriUpper!(::StridedMatrix{T}) where T
@ GenericLinearAlgebra ~/.julia/packages/GenericLinearAlgebra/ljyYY/src/eigenSelfAdjoint.jl:519
Stacktrace:
[1] symtri!(A::Hermitian{Float64, Diagonal{Float64, Vector{Float64}}})
@ GenericLinearAlgebra ~/.julia/packages/GenericLinearAlgebra/ljyYY/src/eigenSelfAdjoint.jl:447
[2] _eigvals!(A::Hermitian{Float64, Diagonal{Float64, Vector{…}}}; tol::Float64, sortby::typeof(LinearAlgebra.eigsortby))
@ GenericLinearAlgebra ~/.julia/packages/GenericLinearAlgebra/ljyYY/src/eigenSelfAdjoint.jl:578
[3] eigvals!(A::Hermitian{Float64, Diagonal{Float64, Vector{…}}}; tol::Float64, sortby::typeof(LinearAlgebra.eigsortby))
@ GenericLinearAlgebra ~/.julia/packages/GenericLinearAlgebra/ljyYY/src/eigenSelfAdjoint.jl:587
[4] eigvals(A::Hermitian{Float64, Diagonal{Float64, Vector{Float64}}})
@ GenericLinearAlgebra ~/.julia/packages/GenericLinearAlgebra/ljyYY/src/eigenSelfAdjoint.jl:638
[5] top-level scope
@ REPL[10]:1
Some type information was truncated. Use `show(err)` to see complete types.
julia> versioninfo()
Julia Version 1.10.5
Commit 6f3fdf7b362 (2024-08-27 14:19 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 8 × 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, tigerlake)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores) |
I was under the impression that Is it possible to transfer the issue there, or should I close this one and open a new one there? |
Yes, perhaps it's best to close this one and open a new one there. Even after you close this, you can reference this issue over there as |
As the title says, the following code fails:
This is not related to
BigFloat
, it also fails forDouble64
andFloat128
. I think the underlying issue is the same as #1056, the lack of a universal fallback.To make life even stranger, after
GenericLinearAlgebra
is loaded this code starts failing even forFloat64
. That is,works fine, but
fails.
The text was updated successfully, but these errors were encountered: