Skip to content
Snippets Groups Projects
Commit 4090de30 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Make `a = 0; a += b' into `a = b'

parent 220420f6
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject {
int const m = i;
LocalMatrixType const* localA = NULL;
LocalVectorType localb(0);
LocalVectorType localb(problem.f[m]);
typename MatrixType::row_type::ConstIterator it;
typename MatrixType::row_type::ConstIterator end = problem.A[i].end();
......@@ -111,7 +111,6 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject {
it->mmv(u[j], localb); // localb += A[m][j] * u[j]
}
localb += problem.f[m]; // localb -= b[m]
assert(localA != NULL);
// FIXME: Hardcoding a fixed function here for now
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment