Skip to content

fix: partition matrix by connected components in structural_singularity_removal!#124

Merged
AayushSabharwal merged 1 commit into
mainfrom
as/fix-ensemble-bareiss
Jul 2, 2026
Merged

fix: partition matrix by connected components in structural_singularity_removal!#124
AayushSabharwal merged 1 commit into
mainfrom
as/fix-ensemble-bareiss

Conversation

@AayushSabharwal

Copy link
Copy Markdown
Member

Since the pivot selection algorithm is global and has a tiered preference, it will shuffle equations around a lot. If the model has disconnected components in mm, this causes the components to eliminate differently compared to how they would behave in isolation. Partitioning the matrix avoids this, and reduces the cost of running this pass significantly for such systems. I'm considering a future PR to sort the equations before running Bareiss for improved reproducibility.

@AayushSabharwal AayushSabharwal force-pushed the as/fix-ensemble-bareiss branch from b0575d7 to 7ae2908 Compare July 2, 2026 14:41
…ity_removal!`

Co-authored-by: Claude <noreply@anthropic.com>
@AayushSabharwal AayushSabharwal force-pushed the as/fix-ensemble-bareiss branch from 7ae2908 to 1587d3a Compare July 2, 2026 14:41
@AayushSabharwal AayushSabharwal merged commit 67ff4f1 into main Jul 2, 2026
9 checks passed
@AayushSabharwal AayushSabharwal deleted the as/fix-ensemble-bareiss branch July 2, 2026 17:00
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