Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

std::inclusive_scan and std::exclusive_scan scan are std::reduce variants that emit each partial result instead of producing a single value. For inclusive_scan, the first output value already includes the first input element; for exclusive_scan, the first output value is the init value. Currently, there is no corresponding range algorithm. Compiler Explorer link: https://lnkd.in/eNKdibig #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

Comparison to `std::partial_sum` please!

Like
Reply

To view or add a comment, sign in

Explore content categories