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
MethodError from *(::Bidiagonal, ::AbstractTriangular) #30094
Comments
This is fixed in #28883, which is awaiting review. |
Awesome! Thanks a lot. How about #28869? |
I found other bugs related to triangular matrices: using Test
# ERROR: InexactError: Int64(Int64, 0.5)
@test_broken Diagonal([0.5]) * LowerTriangular(ones(Int, (1, 1)))
@test_broken Diagonal([0.5]) * UnitLowerTriangular(ones(Int, (1, 1)))
@test_broken Diagonal([0.5]) * UpperTriangular(ones(Int, (1, 1)))
@test_broken Diagonal([0.5]) * UnitUpperTriangular(ones(Int, (1, 1)))
# ERROR: InexactError: Float64(Float64, 0.0 + 1.0im)
@test_broken Diagonal([1.0im]) * LowerTriangular(ones((1, 1)))
@test_broken Diagonal([1.0im]) * UnitLowerTriangular(ones((1, 1)))
@test_broken Diagonal([1.0im]) * UpperTriangular(ones((1, 1)))
@test_broken Diagonal([1.0im]) * UnitUpperTriangular(ones((1, 1)))
# ERROR: MethodError: no method matching lmul!(::LowerTriangular{Float64,Array{Float64,2}}, ::SparseVector{Float64,Int64})
@test_broken LowerTriangular(ones(2, 2)) * sparse([1.0])
@test_broken UnitLowerTriangular(ones(2, 2)) * sparse([1.0])
@test_broken UpperTriangular(ones(2, 2)) * sparse([1.0])
@test_broken UnitUpperTriangular(ones(2, 2)) * sparse([1.0]) |
This was referenced Sep 20, 2019
goggle
added a commit
to goggle/julia
that referenced
this issue
Oct 16, 2019
StefanKarpinski
pushed a commit
that referenced
this issue
Oct 17, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems
*(::Bidiagonal, ::AbstractTriangular)
fails for all fourAbstractTriangular
subtypes becausermul!(::SparseMatrixCSC, ::AbstractTriangular)
does not exist. This is related to (or probably a dup of) #28869.Here is where it fails:
julia/stdlib/LinearAlgebra/src/triangular.jl
Lines 1926 to 1934 in 9f43871
The text was updated successfully, but these errors were encountered: