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

Fixed: usage of startRow in partial gaussian elimination

parent 6f957e4f
No related branches found
No related tags found
No related merge requests found
Pipeline #4631 passed
......@@ -77,9 +77,9 @@ func (f *F2) PartialGaussianElimination(startRow, startCol, stopRow, stopCol int
}
// if the row with a valid pivot bit is not the first row...
if pivotBit-startCol != rowCounter {
if startRow+pivotBit-startCol != rowCounter {
// ...swap it with first one
f.SwapRows(pivotBit-startCol, rowCounter)
f.SwapRows(startRow+pivotBit-startCol, rowCounter)
}
// iterate through all other rows except the first one
......
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