Repository navigation
Fix MatrixView encode row count, gf128Inv pivot selection, and exact span bounds - #16
Merged
ladnir merged 2 commits intoNov 17, 2026
Merged
Conversation
…span bounds Pass output.rows() instead of values.rows() when Paxos::encode(MatrixView) constructs its block-reduced output view, accept any non-zero GF(2^128) element as a pivot in gf128Inv(Matrix<block>), and enforce exact row-count checks across Paxos::decode, Baxos::solve/implParSolve, and Baxos::implParDecode with regression tests in Paxos_bounds_and_gf128Inv_Test.
ladnir
marked this pull request as ready for review
November 17, 2026 22:17
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.
Paxos::encode(MatrixView)constructed its block-reduced output view withvalues.rows()rows instead ofoutput.rows(), causing block-aligned multi-byteMatrixViewencodings to fail the output row check.gf128Inv(Matrix<block>)only acceptedOneBlockwhen searching for a pivot row below a zero diagonal entry, reporting invertible GF(2^128) matrices as singular whenever the non-zero pivot was not 1. AlsoBaxos::implParSolvelacked entry state and size checks, andBaxos::solve,Baxos::implParDecode, andPaxos::decodeallowed mismatchedinputsandvaluescounts even though single-binBaxos::solveandBaxos::checkrequire exact row counts.Pass
output.rows()when reducingMatrixViewoutputs inPaxos::encode, pivot on any non-zeroblockingf128Inv(Matrix<block>), and enforce exact row-count checks acrossPaxos::decode,Baxos::solve/implParSolve, andBaxos::implParDecode, covered byPaxos_bounds_and_gf128Inv_Test.