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

[Cleanup] Do not use addProduct() needlessly

parent a9ddaac7
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
for (size_t i = 0; i < problem.A.N(); ++i) {
auto const end = problem.A[i].end();
for (auto it = problem.A[i].begin(); it != end; ++it)
Arithmetic::addProduct(linearization.A[i][it.index()], 1.0, *it);
linearization.A[i][it.index()] += *it;
}
// compute nonlinearity part of hessian
......
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