Skip to content

Conversation

@shakedregev
Copy link
Collaborator

@shakedregev shakedregev commented Oct 1, 2025

Description

The helper function for the test generateMatrix was overly convoluted. See #223.

Closes #223.

Proposed changes

Simplified conditionals, logic, added more expressive variable names, and documentation.

Checklist

Put an x in the boxes that apply. You can also fill these out after creating
the PR. If you're unsure about any of them, don't hesitate to ask. We're here
to help! This is simply a reminder of what we are going to look for before
merging your code.

  • All tests pass. Code tested on
    • CPU backend
    • CUDA backend
    • HIP backend
  • Code compiles cleanly with flags -Wall -Wpedantic -Wconversion -Wextra.
  • The new code follows Re::Solve style guidelines.
  • There are unit tests for the new code.
  • The new code is documented.
  • The feature branch is rebased with respect to the target branch.
  • Included within changelog scope.

@shakedregev shakedregev self-assigned this Oct 1, 2025
Copy link
Collaborator

@nkoukpaizan nkoukpaizan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes make sense to me, and tests pass on Frontier and pdesx. This is a lot cleaner!

Copy link
Collaborator

@pelesh pelesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning this up!

@pelesh pelesh merged commit 6a1e2f4 into develop Oct 3, 2025
6 checks passed
@shakedregev shakedregev deleted the shaked/simplify_randgmres branch October 9, 2025 20:49
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.

Simplify generation of test matrix in testRandGmres.cpp example

3 participants