-
Notifications
You must be signed in to change notification settings - Fork 573
lapack/gonum: add Dgesc2 #1652
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
lapack/gonum: add Dgesc2 #1652
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.
This looks good now. Thanks. Some minor nits and tests (take a look at how @vladimir-ch implements tests in the testlapack package) — here you would take random inputs with a variety of dimensions and strides, do the LU with Dgetc2 (needs to be implemented - looks very straightforward) and pass in the LU part, checking on return that the equation in the docs is satisfied.
vladimir-ch
left a comment
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.
This needs a test before merging for which Dgetc2 must be implemented (with a test).
|
Some lessons learned:
As for the test, I need to generate not only the general matrix but also |
It will be much easier (and more correct) if you first implement Dgetc2 and use it in the test to generate input for Dgesc2. |
should I do it in this PR? should I start another? |
|
|
Codecov Report
@@ Coverage Diff @@
## master #1652 +/- ##
==========================================
+ Coverage 73.24% 73.25% +0.01%
==========================================
Files 506 507 +1
Lines 59955 60006 +51
==========================================
+ Hits 43913 43958 +45
- Misses 13556 13562 +6
Partials 2486 2486
Continue to review full report at Codecov.
|
|
Dgesc2 is passing albeit without the test you mentioned. I tried programming it and ended up leaving the |
vladimir-ch
left a comment
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.
LGTM after the two comments. I'll fix the test later.
|
@vladimir-ch Thanks for taking a look! |
So the checklist is NOT complete. I intend for this to be a first review of how LAPACK routines are implemented in Go and get some feedback. I'm sure my indexing is messed up, was quite confused seeeing how fortran alternated betweeen double and single indexing. #1651 related.
No tests implemented.