Repository navigation
Conversation
…antage of assumed 0s and 1s instead of explicitly setting them
…nd removed erronous zero setting in xorg2l/xung2l
…antage of assumed 0s and 1s instead of explicitly setting them. Rebasing onto new Master branch
…nd removed erronous zero setting in xorg2l/xung2l
|
Just tried rebasing to new master and letting tests run before doing another pass. Will comment again once my pass is done (should probably make it a draft but oh well) |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1216 +/- ##
==========================================
+ Coverage 69.72% 70.71% +0.99%
==========================================
Files 6204 6247 +43
Lines 497194 501997 +4803
Branches 23430 23516 +86
==========================================
+ Hits 346652 355011 +8359
+ Misses 150116 146035 -4081
- Partials 426 951 +525
... and 454 files with indirect coverage changes Continue to review full report in Codecov by Harness.
|
|
If all these pass, all edits are done |
|
I plan to work on fixing the errors sourced from my changes this evening, but it seems that things I didn't touch are affected: like zlange Here are two snippets from the logs: (first indicates I may be to blame the second indicates that it affects things that I didn't touch as well) Not sure if this is affecting other PRs or this is just 1 issue being propagated due to weird memory corruption |
|
Converting to a draft as more development than a simple bug fix is required. Will either reopen or make a new PR with everything a little more digestible (trying out using git squash) |
|
Thanks @jprhyne. Let us see if we can get this to pass the test suite. There is an issue right now somewhere. You list two advantages: ( 1 / 2 ) We no longer require a workspace for the level2 Q generation functions. That's great! ( 2 / 2 ) We perform fewer operations overall Good. But super minimal since we only save O(n²) for an O(n³) algorithm. But good to save a few FLOPS. |
|
I tried squashing this into two commits but it kept taking me through several hundred unrelated commits likely due to how I merged master instead of rebasing onto it. Removing the unnecessary blas-like kernels since gemm can effectively do the job. Maybe consider adding a routine that does y = A*conjg(x) + \alpha y in a separate pull request. I have an implementation already written and can open this if we would like (in which case we can change the {c,z}larf0c2 routines to now use these routines). I'm opening this for review since no actually called code was changed between the previous CI tests where all passed. Hopefully no black magic happens to make it fail now. edit: do vs due |
… complex larf0c2 routines
Description
During my work on the draft pr #1112 we found that the level2 factorization does not properly take advantage of (1) the initial application of the ``first'' reflector to the identity and the 0s in the subsequent blocks. The advantages are as follows
We no longer require a workspace for the level2 Q generation functions. I did not remove this array from the interface
as I am unsure if we want to actually change the interface and instead say we no longer use this array potentially for backwards compatibility on future releases.
We perform fewer operations overall
One slight drawback is in the case of complex arithmetic, we need to compute a kernel of the form
y = alpha*A*conjg(x) + beta*ywhich is a gemv but conjugating x without conjugating the matrix A. I implemented this in a way to compute elements of y sequentially and did not investigate other methods. I only wrote tests in a personal repo that I can attempt to port or attach to this PR. I only tested the cases of when incx and incy are positive as I do not have a use case for the negative increment cases.
If there is anything I missed or any questions just let me know!
Checklist