Skip to content

Commit

Permalink
Update histogram_11_7th_safe_parallel_combine.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesreinders authored Dec 2, 2024
1 parent fbdf277 commit 3e7a280
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int main(int argc, char** argv) {
my_hist[image[i]]++;
});
//Sequential reduction of the private histograms
vector_t hist_p = priv_h.combine([](vector_t a, vector_t b) -> vector_t
vector_t hist_p = priv_h.combine([](const vector_t& a, const vector_t& b) -> vector_t
{// for each priv histogram
std::transform(a.begin(), // source 1 begin
a.end(), // source 1 end
Expand Down

0 comments on commit 3e7a280

Please sign in to comment.