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

Add skeleton, functions of <numeric> library #3332

Merged
merged 12 commits into from Feb 11, 2020
Merged

Conversation

cgyurgyik
Copy link
Contributor

@cgyurgyik cgyurgyik commented Jan 27, 2020

This contains:

  • the skeleton for the <numeric> library.
  • std::inner_product(InputIt1 first1, InputIt1 last1, InputIt2 first2, T init)
  • std::inner_product(InputIt1 first1, InputIt1 last1, InputIt2 first2, T init, BinaryOperation1 op1, BinaryOperation2 op2)
  • std::iota(ForwardIt first, ForwardIt last, T value)
  • std::accumulate(InputIt first, InputIt last, T init)
  • std::accumulate(InputIt first, InputIt last, T init, BinaryOperation op)
  • std::adjacent_difference(InputIt in_first, InputIt in_last, OutputIt out_first)
  • std::adjacent_difference(InputIt in_first, InputIt in_last, OutputIt out_first, BinaryOperation op)
  • std::partial_sum(InputIt in_first, OutputIt in_last, OutputIt out_first)
  • std::partial_sum(InputIt in_first, InputIt in_last, OutputIt out_first, BinaryOperation op)

I've copied the structure and organization of <algorithm>.

@cgyurgyik cgyurgyik changed the title Add skeleton of <numeric> library, as well as std::inner_product Add skeleton of <numeric> library, as well as a few functions. Jan 27, 2020
@cgyurgyik cgyurgyik changed the title Add skeleton of <numeric> library, as well as a few functions. Add skeleton of <numeric> library, as well as functions. Jan 28, 2020
@cgyurgyik cgyurgyik changed the title Add skeleton of <numeric> library, as well as functions. Add skeleton, functions of <numeric> library Jan 30, 2020
@robertwb robertwb merged commit de6c2c5 into cython:master Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants