We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbe7bbc commit 70ca766Copy full SHA for 70ca766
contents/gaussian_elimination/code/c++/gaussian_elimination.cpp
@@ -19,8 +19,7 @@ void gaussianElimination(std::vector<std::vector<double> > &eqns) {
19
if (eqns[pivot][i] == 0.0)
20
continue; // But continuing to simplify the matrix as much as possible
21
22
- if (i !=
23
- pivot) // Swapping the rows if new row with higher maxVals is found
+ if (i != pivot) // Swapping the rows if new row with higher maxVals is found
24
std::swap(eqns[pivot], eqns[i]); // C++ swap function
25
26
for (int j = i + 1; j < rows; j++) {
0 commit comments