-
Notifications
You must be signed in to change notification settings - Fork 5
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
failure on v1.11-dev #126
Comments
Errors occur for 1x1 and 2x2 matrices, it looks like: julia> A = skewhermitian(rand(2,2))
2×2 SkewHermitian{Float64, Matrix{Float64}}:
0.0 -0.259484
0.259484 0.0
julia> tan(A)
ERROR: StackOverflowError:
Stacktrace:
[1] SkewHermitian{Float64, SkewHermitian{Float64, Matrix{Float64}}}(A::SkewHermitian{Float64, Matrix{Float64}}) (repeats 79984 times)
@ SkewLinearAlgebra ~/.julia/dev/SkewLinearAlgebra/src/skewhermitian.jl:57 |
Looks like we just need to add a constructor Though fixing that exposes another failure on 1.11 in this test for
In particular, we have this incorrect result on 1.11: julia> tan(skewhermitian([0.1im;;]))
1×1 SkewHermitian{ComplexF64, Matrix{ComplexF64}}:
0.0 + 0.0im whereas it gives the correct result Indeed, |
In particular, I'm getting the following wrong result on 1.11 that is the source of the julia> C = Hermitian([1.0+0im;;]); S = SkewHermitian([0+1.0im;;])
1×1 SkewHermitian{ComplexF64, Matrix{ComplexF64}}:
0.0 + 1.0im
julia> C \ S
1×1 SkewHermitian{ComplexF64, Matrix{ComplexF64}}:
0.0 + 0.0im In both 1.9 and 1.11 it's calling a Base method here, so this might be an error in Base on 1.11: julia> @which C \ S
\(A::Union{Hermitian{T, S}, Symmetric{T, S}} where {T, S}, B::AbstractMatrix)
@ LinearAlgebra ~/Documents/Code/julia/usr/share/julia/stdlib/v1.11/LinearAlgebra/src/symmetric.jl:584 |
It looks like the problem was exposed to the julia> C \ S
1×1 Matrix{ComplexF64}:
0.0 + 1.0im
julia> Diagonal(C) \ S
1×1 SkewHermitian{ComplexF64, Matrix{ComplexF64}}:
0.0 + 0.0im |
Thanks! |
Currently failing on
v"1.11.0-DEV.745"
with:The text was updated successfully, but these errors were encountered: