Skip to content

fix: route theory-pricing column scatter through koblas - #2008

Merged
rasros merged 1 commit into
mainfrom
fix/theory-pricing-scatter-column
Sep 15, 2026
Merged

rasros merged 1 commit into
mainfrom
fix/theory-pricing-scatter-column

Conversation

@rasros

@rasros rasros commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

What changed

  • RevisedSimplex.probeTheorySupport now scatters the candidate column into pricingSpikeVec via the existing scatterColumn helper instead of a hand-written loop over colPtr/rowIdx/colVal.

Why

The manual loop duplicated scatterColumn, which already goes through IndexedVector.scatterStored → koblas's SparseSlices.scatterAxpy kernel — the same path every other column scatter in this file uses (e.g. spike()). Work accounting is preserved: scatterColumn charges work by the column's nnz itself, so lastTheoryPricingWorkOps is now charged directly for that nnz instead of double-counting through addTheoryPricingWork.

Testing

No new tests; existing RevisedSimplexTheoryPricingTest covers lastTheoryPricingWorkOps and total work-op accounting and still passes.

@rasros
rasros merged commit 27ee9a7 into main Sep 15, 2026
3 checks passed
@rasros
rasros deleted the fix/theory-pricing-scatter-column branch September 15, 2026 07:36
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