Skip to content

Pin +/- with untracked elements (closes #175) - #306

Merged
devmotion merged 1 commit into
masterfrom
dmw/issue-175
Sep 24, 2026
Merged

devmotion merged 1 commit into
masterfrom
dmw/issue-175

Conversation

@devmotion

Copy link
Copy Markdown
Member

#175 was fixed by #300 and nothing pins it. Diagonal/diagm of a Vector{Real} gives tracked diagonal entries and untracked zeros, and the reverse pass of +/- threw increment_deriv!(::Float64, ::Float64) on the zeros until #300 made it skip untracked elements.

The new testset checks +/- with such matrices, in both argument orders, against the analytical Jacobians, directly and on a compiled tape. The same reproducer throws the #175 error before #300 (e127522~1) and passes from #300 on.

🤖 Generated with Claude Code

`Diagonal` and `diagm` of a `Vector{Real}` give tracked diagonal entries
and untracked zeros, whose reverse pass threw `increment_deriv!(::Float64,
::Float64)` until #300 made it skip untracked elements. Check against the
analytical Jacobians, directly and on a compiled tape.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.21%. Comparing base (68c5a56) to head (228b5a5).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #306   +/-   ##
=======================================
  Coverage   88.21%   88.21%           
=======================================
  Files          19       19           
  Lines        1934     1934           
=======================================
  Hits         1706     1706           
  Misses        228      228           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@devmotion
devmotion merged commit 115a06c into master Sep 24, 2026
8 checks passed
@devmotion
devmotion deleted the dmw/issue-175 branch September 24, 2026 22:05
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