-
-
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
Add diagm for vectors #31125
Add diagm for vectors #31125
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! This should also add a test for the method, checking that it works as expected as well as documentation and a NEWS entry.
7be6481
to
842fc10
Compare
I've removed the un-necessary commit from the branch! |
At this point I would just do |
07f9d59
to
8cf8d17
Compare
Is it fine now? |
88ec94a
to
e7424bf
Compare
If you look at https://github.com/JuliaLang/julia/pull/31125/files you can see that many irrelevant files seems to have been deleted in this PR. There is also still no test added. |
Tests as in documented examples of the function call? If so, what's the format to be followed? |
Tests as in testing the functionality of the new feature (using the Also we could update all the instances of syntax like |
Interesting! But can I make a separate PR for that? This PR has too clumsy for a lapse on my part and I'm not proud of this fact. :( |
Sure, that can very well be in another PR. |
f79d779
to
7a5e5b4
Compare
7a5e5b4
to
1d1722a
Compare
Ok, what's left to do in this PR? Can anyone tell? @KristofferC @StefanKarpinski |
No need to ping when people are already in the conversation :) I did note the conversation above, but would it really be such a hassle to simply include the tests in this PR? It's easier to find at a later point if it's in the same PR, and you'll actually be 110% confident that your changes work as intended. Even the smallest changes can have unintended consequences, so it's just good practice IMO. I get the eagerness to have the PR merged, but honestly, there's not going to be a new release of Julia tomorrow (I don't think there is at least ! ) so if this is merged now or if it's merged three days from now WITH tests really doesn't matter from an end-users perspective - so I'd say the latter (wait and merge with tests) makes sense. Even for such a "simple" (though appreciated) PR. |
Thanks for the advice, and well I was just curious to know what remaining work was left so that I could complete it. Seems like to add tests for it! |
6f5a7dd
to
4e22ff4
Compare
4e22ff4
to
9732693
Compare
Just trying to reopen! |
997a4ba
to
16eafc4
Compare
16eafc4
to
16c5061
Compare
Getting there! |
Co-Authored-By: eulerkochy <kc99.kol@gmail.com>
As per review. Co-Authored-By: eulerkochy <kc99.kol@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. Glad you stuck it out!
This in reference to JuliaLang/LinearAlgebra.jl#609 . I've added the missing function definition.