Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inclusive scan #1342

Merged
merged 13 commits into from Jan 6, 2015
Merged

Inclusive scan #1342

merged 13 commits into from Jan 6, 2015

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented Jan 4, 2015

Adding exclusive_scan and inclusive_scan algorithm. This also adds transform_exclusive_scan and transform_inclusive_scan. Irt also changes the implementation of parallel::dispatch and parallel::remote::dispatch to use variadics.

@hkaiser hkaiser mentioned this pull request Jan 5, 2015
char const* const name_;

friend class boost::serialization::access;

template <typename Archive>
void serialize(Archive& ar, unsigned int)
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing the name_ member, on purpose?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default constructors for the algorithms always set this value, no need to serialize it explicitly

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. wouldn't a static char const * Derived::name() be more appropriate than a distinct member?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either way would work. Both variations can be made constexpr later on.

@sithhell
Copy link
Member

sithhell commented Jan 5, 2015

What I miss here is a testcase for the scan partitioner.

@hkaiser
Copy link
Member Author

hkaiser commented Jan 6, 2015

Well, all tests for the various scan algorithms test this partitioner, though indirectly.

hkaiser added a commit that referenced this pull request Jan 6, 2015
@hkaiser hkaiser merged commit 0ef7e24 into master Jan 6, 2015
@hkaiser hkaiser deleted the inclusive_scan branch January 6, 2015 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants