-
-
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
Fix of null column error in geqrf! and gerqf! #42844
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 the PR. It would be good if you could also add a test for the case that used to error.
Moving BlasInt
outside max
will also allow you to use it just once but that isn't a big deal.
I did not add a test because I don't know the expected correct output. |
I think So I propose to leave it as it is now in the former form. Just a question regarding this, my first, PR: What I have to do to finish, since two checks failed, but apparently they have nothing to do with the changes performed in this PR. |
As for the test, I think someting like: a = rand(2,0), zeros(0) # just copy from the related issue
@test LinearAlgebra.LAPACK.geqrf!(a...) === a
@test LinearAlgebra.LAPACK.gerqf!(a...) === a # this won't pass even with this fix on my PC. would be enough. |
The correction for Many thanks N5N3 for the help and pointing out this issue. |
I'm pretty sure that should be considered a bug in LAPACK. |
I opened an issue for LAPACK at #633, where I described the problem more in detail. |
@andreasvarga Could you rebase this to master? |
This being my first PR, I am afraid I need some guidance what I have exactly to do. Sorry for this! |
@andreasvarga Welcome and thank you for making the PR! On the |
I followed your hints. Here is what I got:
|
Right - also do |
Actually I am not sure this has fully rebased it to master. I think the steps are:
I wonder if things work differently on forked repos. |
I performed the last step as:
I hope I did not something wrong. |
It looks like it happened correctly. Thank you. @andreasnoack Are we ok to merge this if CI looks good? I doubt the upstream will do anything anytime soon. |
* Fix of null column error in geqrf! and gerqf! * Added tests * Trailing blanks removed * Correct issue number * Adjusted lwork to max(m, 1, Int(real(work[1]))) * Fine tuning
* Fix of null column error in geqrf! and gerqf! * Added tests * Trailing blanks removed * Correct issue number * Adjusted lwork to max(m, 1, Int(real(work[1]))) * Fine tuning
Addresses #42762. This is my first PR. I hope it is correct. No tests have been performed.