Skip to content

cleanup: separate real and complex zero/one constants in {c,z}csdts#1234

Open
nakatamaho wants to merge 2 commits intoReference-LAPACK:masterfrom
nakatamaho:cleanup/csdts
Open

cleanup: separate real and complex zero/one constants in {c,z}csdts#1234
nakatamaho wants to merge 2 commits intoReference-LAPACK:masterfrom
nakatamaho:cleanup/csdts

Conversation

@nakatamaho
Copy link
Copy Markdown
Contributor

Summary

This cleanup makes the scalar and complex constants explicit in the CSD
test routines.

ccsdts.f and zcsdts.f previously used separate real constants
(REALZERO/REALONE) alongside complex ZERO/ONE. This change
switches to real ZERO/ONE and complex CZERO/CONE, then updates
the affected call sites to use constants with the intended type.

Changes

  • define real ZERO/ONE and complex CZERO/CONE
  • update {C,Z}LASET, {C,Z}GEMM, and {C,Z}HERK call sites to use
    the matching real or complex constants
  • replace literal imaginary-zero arguments in CMPLX/DCMPLX with the
    named real ZERO constant
  • remove the now-redundant REALZERO/REALONE naming in these routines

Notes

No functional change intended.

This is a test-code cleanup that makes the constant usage more explicit
and avoids mixing real and complex meanings under the same ZERO/ONE
names.

Replace REALONE/REALZERO and complex ZERO/ONE with
type-specific named constants in the CSD test routines:
ZERO/ONE for real scalars, and CZERO/CONE for complex values.

Update {C,Z}LASET, {C,Z}GEMM, and {C,Z}HERK call sites to use
the matching constant type, and replace literal imaginary zeros
in CMPLX/DCMPLX calls with the named real ZERO constant.

No functional change intended.
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.

1 participant