Skip to content
Snippets Groups Projects
Commit b126a027 authored by Tom Fischer's avatar Tom Fischer
Browse files

[MathLib] Fix a critical bug in GaussAlgorithm.

Reza discovered a bug within the gauss elimination.
parent ce45e113
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ GaussAlgorithm<MAT_T, VEC_T>::GaussAlgorithm(MAT_T &A,
_perm[k] = k;
for (i=k+1; i<nr; i++) {
if (std::abs(_mat(i,k)) > t) {
t = _mat(i,k);
t = std::abs(_mat(i,k));
_perm[k] = i;
}
}
......
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