We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79119dc commit fbfa0fcCopy full SHA for fbfa0fc
ifopt_core/src/composite.cc
@@ -190,7 +190,7 @@ Composite::RowIndicesHessiansPair Composite::GetHessians() const
190
std::vector<Hessian>& hessians = row_indices_hessians_pair.second;
191
hessians.reserve(GetRows()); // reserve space in the vector to avoid reallocations
192
193
- int offset; // offset for row indices in different component
+ int offset = 0; // offset for row indices in different component
194
for (const auto& c : components_) {
195
const RowIndicesHessiansPair& local_row_indices_hessians = c->GetHessians();
196
const std::vector<int>& row_indices = local_row_indices_hessians.first;
0 commit comments