-
Notifications
You must be signed in to change notification settings - Fork 58
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
Fix order of triangular and adjortrans wrappers #283
Conversation
Hm, the swap already happened in the v1.6 cycle: JuliaLang/julia#38168, so we need to backport this. |
Codecov Report
@@ Coverage Diff @@
## main #283 +/- ##
==========================================
+ Coverage 92.03% 93.78% +1.74%
==========================================
Files 12 12
Lines 7334 7334
==========================================
+ Hits 6750 6878 +128
+ Misses 584 456 -128
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
So we need to queue this up for backports to 1.6, 1.7 and 1.8? |
How embarrassing, and the fault is all mine: julia> @which lmul!(UpperTriangular(sprand(10,10,0.3))', zeros(10,4))
lmul!(xA::LowerTriangular{var"#s804", var"#s803"} where {var"#s804", var"#s803"<:Adjoint}, B::StridedVecOrMat{T} where T) in LinearAlgebra at /Applications/Julia-1.6.app/Contents/Resources/julia/share/julia/stdlib/v1.6/LinearAlgebra/src/triangular.jl:1013
Yes, for 1.6 and 1.8. |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-1.8 1.8
# Navigate to the new working tree
cd .worktrees/backport-1.8
# Create a new branch
git switch --create backport-283-to-1.8
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick --mainline 1 bdd01975cbb3c11a1042eb247baa88cec1ada5de
# Push it to GitHub
git push --set-upstream origin backport-283-to-1.8
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-1.8 Then, create a pull request where the |
Backport companion to JuliaSparse/SparseArrays.jl#283 Co-authored-by: Kristoffer Carlsson <[email protected]> Co-authored-by: Elliot Saba <[email protected]>
I'm not sure why this hasn't come up anywhere, but it may be that it simply lead to performance penalties. In any case, for a while adjoints of triangular matrices are passed to the wrapped matrix while the triangular wrapper is flipped. This should be backported to v1.8.