Skip to content

Commit 6829744

Browse files
committed
Add inline comments with reference to literature
1 parent 5f2b1aa commit 6829744

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

BLAS/SRC/drotmg.f

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ SUBROUTINE DROTMG(DD1,DD2,DX1,DY1,DPARAM)
153153
DD2 = DD2/DU
154154
DX1 = DX1*DU
155155
ELSE
156+
* This code path if here for safety. We do not expect this
157+
* condition to ever hold except in edge cases with rounding
158+
* errors. See DOI: 10.1145/355841.355847
156159
DFLAG = -ONE
157160
DH11 = ZERO
158161
DH12 = ZERO

BLAS/SRC/srotmg.f

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ SUBROUTINE SROTMG(SD1,SD2,SX1,SY1,SPARAM)
153153
SD2 = SD2/SU
154154
SX1 = SX1*SU
155155
ELSE
156+
* This code path if here for safety. We do not expect this
157+
* condition to ever hold except in edge cases with rounding
158+
* errors. See DOI: 10.1145/355841.355847
156159
SFLAG = -ONE
157160
SH11 = ZERO
158161
SH12 = ZERO

0 commit comments

Comments
 (0)