Skip to content
Snippets Groups Projects
Commit f4f36927 authored by Max Kahnt's avatar Max Kahnt
Browse files

Fix: Starting residual computation with wrong iterate.

parent 9b1ad3af
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ namespace MatrixVector {
auto cIt = it->begin();
assert(cIt.index() == it.index());
x[i] = b[i] / *cIt;
cIt++;
for (; cIt != it->end(); ++cIt) {
const size_t j = cIt.index();
b[j] -= x[i] * *cIt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment