Update Frobenius norms for better accuracy. - #290
Merged
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #290 +/- ##
==========================================
- Coverage 82.59% 82.46% -0.13%
==========================================
Files 1841 1843 +2
Lines 177881 178231 +350
==========================================
+ Hits 146916 146984 +68
- Misses 30965 31247 +282
Continue to review full report at Codecov.
|
Contributor
christoph-conrads
pushed a commit
to christoph-conrads/lapack
that referenced
this pull request
May 23, 2021
Update Frobenius norms for better accuracy.
Merged
weslleyspereira
added a commit
to weslleyspereira/lapack
that referenced
this pull request
May 26, 2021
2 tasks
langou
added a commit
that referenced
this pull request
Aug 30, 2021
Revert "Merge pull request #290"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes issue #261.
I added
scombssqanddcombssqto merge two sum-of-squares quantities. These functions are taken from ScaLAPACK (TOOLS/pdtreecomb.f), just the documentation is updated to match LAPACK's style.Updated norms were tested via the LAPACK++ tester, comparing single to double precision on identical matrices, and results from new code with results from old code.
For instance, original results (output abbreviated):
Using double precision (type d) as reference, this gives a relative error for single precision (type s) of 1.5360e-02.
With updated code:
Again using double-precision as reference, this gives a much better relative error for single precision of 2.8808e-07. Note also that the double-precision result is close to that generated by the old code.
For reference, in LAPACK++ test I ran:
and compared those files. I modified the LAPACK++ matrix_generator.cc to generate exactly the same matrix for single and double precision, e.g., for all i, j:
instead of using
larnv.I did not address RFP matrix norms (
dlansf, ...). Nor tridiagonal matrices (dlangt, ...), which due to having fewer entries (only O(n) instead of O(n^2)), are less affected by the accuracy issue.