-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[SparseArrays] Respect order of mul in (l)mul!(::Diagonal,::Sparse) #30163
Conversation
We actually have julia/stdlib/LinearAlgebra/test/generic.jl Lines 10 to 32 in 6b2d211
Furlong already lives such that we can use it here.
|
Ok, cool, I have tests which pass (and wouldn't pass on master for exactly the commutativity issue). It looks like this:
Comments are welcome. To get this running, I needed to define
in addition to what is defined in @andreasnoack 's snippet above. I didn't understand the "move the code" comment above. Should I just add the definitions where the others are and the tests somewhere in the usual test section? Would the tests know about |
To move the code you can cut and paste the existing Quaternion definition into |
Could be good to squash this into two commits: one with the move of Quaternion and one with the bugfix, but does not matter much. |
Yes, I'll see if I can find a git expert to help me with that. On a different note: this PR affects #29296, which is labelled as "backport pending 1.0". |
I think it should be safe to mark this PR for backport as well. |
add tests for non-commutative mul
remove quaternions from generic tests
That was the adventure of my life, but I managed to clean up my commit mess (with the help of my colleague... well, he dictated, I was typing). Result: two beautiful, nicely sorted commits. 🎉 |
can this be merged? |
I believe so - but I am wondering if we need to wait for the 1.1 release process. |
Yes. I wasn't sure if I needed to give another "I'm done" signal, since I felt that was obvious and didn't want to put pressure on anyone. |
Can change behavior so should not be backported |
Fixes #30161 .