-
-
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
no method for A*A' when A = LowerTriangular(Diagonal(...)) #556
Comments
BTW, I am afraid that having matrices like above comes from my own JuliaLang/julia#27823, eg julia> using LinearAlgebra; cholesky(inv(Diagonal([1.0, 4.0]))).L
2×2 LowerTriangular{Float64,Diagonal{Float64,Array{Float64,1}}}:
1.0 ⋅
0.0 0.5 |
I have been thinking about this issue, and broadly I can think of two solutions:
Also, can someone please add the linear algebra label to the issue? |
Friendly ping: I would be happy to make a PR fixing this, just need some guidance on the preferred solution. @andreasnoack, can you please help with this? |
I think it would be unfortunate to lose the diagonal structure which could easily happen if the |
@tpapp Do you still think we need this method, or was the issue kind of resolved with the diagonal cholesky decomposition? |
The original example still fails for me on |
Sure. But this is a very peculiar combination. Would you expect that one to occur in the wild? |
@tpapp do you think this can be closed now? julia> versioninfo()
Julia Version 1.8.0-DEV.1456
Commit 10ded70514* (2022-02-05 07:49 UTC)
...
julia> using LinearAlgebra
julia> A = LowerTriangular(Diagonal([1, 2]))
2×2 LowerTriangular{Int64, Diagonal{Int64, Vector{Int64}}}:
1 ⋅
0 2
julia> A * A'
2×2 Matrix{Int64}:
1 0
0 4 |
@laborg: sorry for not responding earlier. Yes, I think this has been fixed somewhat accidentally by JuliaLang/julia#43127 ( |
for the issue (and a trivial typo fix).
for the issue (and a trivial typo fix).
for the issue (and a trivial typo fix).
The text was updated successfully, but these errors were encountered: