Add safe scaling xLASSQ routines from https://doi.org/10.1145/3061665#494
Merged
langou merged 11 commits intoReference-LAPACK:masterfrom Apr 6, 2021
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #494 +/- ##
==========================================
+ Coverage 83.36% 83.41% +0.04%
==========================================
Files 1820 1821 +1
Lines 185545 185725 +180
==========================================
+ Hits 154673 154914 +241
+ Misses 30872 30811 -61
Continue to review full report at Codecov.
|
Collaborator
Author
|
I have just added Doxygen preambles to all new files. The |
… Let the compiler determine the Fortran layout by the file extension
…la_xisnan extension
a017400 to
a4e4a7e
Compare
a4e4a7e to
3606023
Compare
Update Doxygen headers Fix typos
langou
approved these changes
Apr 6, 2021
3 tasks
christoph-conrads
pushed a commit
to christoph-conrads/lapack
that referenced
this pull request
May 23, 2021
…SQ-from-Edward-Anderson Add safe scaling xLASSQ routines from https://doi.org/10.1145/3061665
Merged
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.
Edward Anderson stated in his paper https://doi.org/10.1145/3061665 the following:
The square root of a sum of squares is well known to be prone to overflow and underflow. Ad hoc scaling
of intermediate results, as has been done in numerical software such as the BLAS and LAPACK, mostly
avoids the problem, but it can still occur at extreme values in the range of representable numbers. More
careful scaling, as has been implemented in recent versions of the standard algorithms, may come at the
expense of performance or clarity. This work reimplements the vector 2-norm and the generation of Givens
rotations from the Level 1 BLAS to improve their performance and design. In addition, support for negative
increments is extended to the Level 1 BLAS operations on a single vector, and a comprehensive test suite
for all the Level 1 BLAS is included.
This PR replaces the original xLASSQ with Edward's safe scaling xLASSQ codes.
Since the codes were written in the Fortran90 standard, I removed
from the
CMakeLists.txt. The compiler now determines the Fortran layout by the file extension.