Skip to content

Fix complex NRM2 tests for matching infinite results#1264

Open
AymenQ wants to merge 1 commit into
Reference-LAPACK:masterfrom
AymenQ:fix-complex-nrm2-inf-test
Open

Fix complex NRM2 tests for matching infinite results#1264
AymenQ wants to merge 1 commit into
Reference-LAPACK:masterfrom
AymenQ:fix-complex-nrm2-inf-test

Conversation

@AymenQ

@AymenQ AymenQ commented May 6, 2026

Copy link
Copy Markdown

Description

The extended complex NRM2 tests can compare an expected +Inf norm with a computed +Inf norm. The relative-error path then evaluates Inf - Inf, producing NaN and reporting a spurious failure.

Treat exactly equal results as zero test ratio before computing the relative difference. This matches the existing SNRM2 and DNRM2 test logic.

Fixes #1047.

Checklist

  • The documentation has been updated.
  • If the PR solves a specific issue, it is set to be closed on merge.

The extended complex NRM2 tests can compare an expected +Inf norm with
a computed +Inf norm. The relative-error path then evaluates Inf - Inf,
producing NaN and reporting a spurious failure.

Treat exactly equal results as zero test ratio before computing the
relative difference. This matches the existing SNRM2 and DNRM2 test
logic.

Fixes Reference-LAPACK#1047.
@AymenQ

AymenQ commented Jun 9, 2026

Copy link
Copy Markdown
Author

Gentle ping @langou -- would you be able to take a look at this, or point me to the right reviewer? It’s a small test-only fix for #1047.

@martin-frbg

Copy link
Copy Markdown
Collaborator

LGTM though the appropriate reviewer would probably be angsch who authored the NRM2 tests (but may be too busy right now)

@martin-frbg martin-frbg mentioned this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SCNRM2 and DZNRM2 fail on master

2 participants