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 mapreduce_single function #25051

Merged
merged 1 commit into from
Jan 4, 2018
Merged

Add mapreduce_single function #25051

merged 1 commit into from
Jan 4, 2018

Commits on Jan 3, 2018

  1. Add mapreduce_single function

    Since the demise of `r_promote` in #22825, there is now a type-instability in `mapreduce` if the operator does not give an element of the same type as the input. This arose during my implementation of Kahan summation using a reduction operator, see: JuliaMath/KahanSummation.jl#7
    
    This adds a `mapreduce_single` function which defines what the result should be in these cases.
    simonbyrne committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    4c19973 View commit details
    Browse the repository at this point in the history