Skip to content

Conversation

@MaanasArora
Copy link
Contributor

@MaanasArora MaanasArora commented Jan 4, 2026

Description

Closes #395.

I'm a new contributor to this project - I'm interested in scientific computing and want to help with performance optimization and research. Thanks for reviewing!

Proposed changes

Updates MatrixHandler::addConst to int return type to match the documentation. There are no error returns yet, and as stated in the issue any don't seem obvious yet, but still seems useful for consistency.

Note: I've updated the changelog, was not sure, but happy to revert if this change is too minor.

Checklist

  • 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.
  • I have updated CHANGELOG.md to reflect the changes in this PR. If this is a minor PR that is part of a larger fix already included in the file, state so.

@nkoukpaizan nkoukpaizan changed the base branch from develop to maanas_arora/add_const_return_type January 5, 2026 15:00
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.

Looks good to me. Tests pass, except the push to the build cache. Changed the base of the merge to a branch within the ORNL/ReSolve space, so we can re-run CI on this branch before merging to develop.

@pelesh
Copy link
Collaborator

pelesh commented Jan 5, 2026

Thanks for catching this and submitting a pull request @MaanasArora!

@pelesh pelesh merged commit 23da075 into ORNL:maanas_arora/add_const_return_type Jan 5, 2026
4 of 21 checks passed
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.

Bug: MatrixHandler::addConst return type doesn't match documentation

3 participants