Skip to content

Commit 54b6620

Browse files
authored
Merge pull request #1264 from AymenQ/fix-complex-nrm2-inf-test
Fix complex NRM2 tests for matching infinite results
2 parents a66e2a3 + 6af8532 commit 54b6620

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

BLAS/TESTING/cblat1.f

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,8 @@ SUBROUTINE CB1NRM2(N,INCX,THRESH)
10331033
ELSE
10341034
TRAT = ZERO
10351035
END IF
1036+
ELSE IF (SNRM == ZNRM) THEN
1037+
TRAT = ZERO
10361038
ELSE IF (ZNRM == ZERO) THEN
10371039
TRAT = SNRM / ULP
10381040
ELSE

BLAS/TESTING/zblat1.f

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,8 @@ SUBROUTINE ZB1NRM2(N,INCX,THRESH)
10331033
ELSE
10341034
TRAT = ZERO
10351035
END IF
1036+
ELSE IF (SNRM == ZNRM) THEN
1037+
TRAT = ZERO
10361038
ELSE IF (ZNRM == ZERO) THEN
10371039
TRAT = SNRM / ULP
10381040
ELSE

0 commit comments

Comments
 (0)