Repository navigation
Keep transversal-start CG bounded on singular systems - #118
Merged
Merged
Conversation
The group-graph Laplacian in the transversal start is singular, with each component's constants in its null space. When the right-hand side vanishes, as it does when the slacks cancel at every group, the stopping tolerance was zero and CG kept iterating after convergence. Roundoff in the residual along the null space, invisible to p'Lp, then produced step sizes near 1e25. In `cover_exponents` this shifted the group offsets to about -1.6e17, where Float64 rounding scrambled them and the integer balancing overflowed, returning exponents near ±1.2e17 (and making `cover(A; pow2=true)` throw). `_tt_cg!` now projects the residual onto the range of the Laplacian on each component, and its tolerance also scales with the initial residual. As fail-fast guards, the pow2 transversal start checks that the group offsets are small enough to round exactly, and `_balance_exponents!` uses checked integer arithmetic. Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #118 +/- ##
=======================================
Coverage 98.39% 98.40%
=======================================
Files 27 27
Lines 8685 8706 +21
=======================================
+ Hits 8546 8567 +21
Misses 139 139 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The group-graph Laplacian in the transversal start is singular, with each component's constants in its null space. When the right-hand side vanishes, as it does when the slacks cancel at every group, the stopping tolerance was zero and CG kept iterating after convergence. Roundoff in the residual along the null space, invisible to p'Lp, then produced step sizes near 1e25. In
cover_exponentsthis shifted the group offsets to about -1.6e17, where Float64 rounding scrambled them and the integer balancing overflowed, returning exponents near ±1.2e17 (and makingcover(A; pow2=true)throw)._tt_cg!now projects the residual onto the range of the Laplacian on each component, and its tolerance also scales with the initial residual. As fail-fast guards, the pow2 transversal start checks that the group offsets are small enough to round exactly, and_balance_exponents!uses checked integer arithmetic.Assisted-by: Claude Opus 5.5 noreply@anthropic.com