Skip to content
Snippets Groups Projects
Commit 0b3ea1f5 authored by Daniel Jankowski's avatar Daniel Jankowski
Browse files

Fixed: error in partial gaussian elimination

parent 54b2c243
No related branches found
No related tags found
No related merge requests found
Pipeline #4473 passed
......@@ -89,7 +89,7 @@ func (f *F2) PartialGaussianElimination(startRow, startCol, stopRow, stopCol int
// subtract the 1 from all other rows with the pivotBit
f.Rows[rr].Xor(
f.Rows[rr],
f.Rows[pivotBit-startCol],
f.Rows[startRow+pivotBit-startCol],
)
}
......@@ -120,7 +120,7 @@ func (f *F2) partialDiagonalize(startRow, startCol, stopRow, stopCol int) {
// eliminate the 1
f.Rows[rowCounter].Xor(
f.Rows[rowCounter],
f.Rows[pivotBit-startCol],
f.Rows[startRow+pivotBit-startCol],
)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment