Skip to content

Fix complex NRM2 tests for matching infinite results#1264

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

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

Conversation

@AymenQ
Copy link
Copy Markdown

@AymenQ AymenQ commented May 6, 2026

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.
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

1 participant