Skip to content

Fix B7 (PlanGrad unused allocation) and B2 (ABFPlusPlus hardcoded 1.F)#30

Merged
csparker247 merged 3 commits intodevelopfrom
worktree-agent-ad229d15
Mar 15, 2026
Merged

Fix B7 (PlanGrad unused allocation) and B2 (ABFPlusPlus hardcoded 1.F)#30
csparker247 merged 3 commits intodevelopfrom
worktree-agent-ad229d15

Conversation

@csparker247
Copy link
Copy Markdown
Member

Summary

  • B7: Remove unused auto edges = v->wheel() line in PlanGrad (ABF.hpp) that allocated a wheel vector on every gradient evaluation and immediately discarded it.
  • B2: Replace 1.F / it.value() with T(1) / it.value() in the LambdaStarInv inversion loop (ABFPlusPlus.hpp) so double-precision instantiations are not silently truncated to float.

Test plan

  • All 6 test suites pass (ctest 100%)
  • No regressions in existing parameterization tests

Closes #12
Closes #7

csparker247 and others added 3 commits March 15, 2026 12:29
…ed 1.F)

B7: Remove unused `auto edges = v->wheel()` in PlanGrad that wasted a
heap allocation on every gradient evaluation.

B2: Replace `1.F / it.value()` with `T(1) / it.value()` in LambdaStarInv
inversion so double-precision instantiations are not silently truncated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Verifies that the T(1) fix produces correct double-precision results,
catching any regression to the hardcoded 1.F literal.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@csparker247 csparker247 merged commit de3baf3 into develop Mar 15, 2026
6 of 7 checks passed
@csparker247 csparker247 deleted the worktree-agent-ad229d15 branch March 15, 2026 19:17
csparker247 added a commit that referenced this pull request Mar 15, 2026
All five bug tracks resolved via PRs #30, #31, #32 (merged to develop).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

[B7] PlanGrad allocates and immediately discards a wheel vector [B2] ABFPlusPlus LambdaStarInv inversion uses hardcoded float literal

1 participant