Skip to content

Commit 70ca766

Browse files
committed
Changed one broken line
1 parent fbe7bbc commit 70ca766

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contents/gaussian_elimination/code/c++/gaussian_elimination.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ void gaussianElimination(std::vector<std::vector<double> > &eqns) {
1919
if (eqns[pivot][i] == 0.0)
2020
continue; // But continuing to simplify the matrix as much as possible
2121

22-
if (i !=
23-
pivot) // Swapping the rows if new row with higher maxVals is found
22+
if (i != pivot) // Swapping the rows if new row with higher maxVals is found
2423
std::swap(eqns[pivot], eqns[i]); // C++ swap function
2524

2625
for (int j = i + 1; j < rows; j++) {

0 commit comments

Comments
 (0)