Skip to content

Conversation

@kanav99
Copy link
Contributor

@kanav99 kanav99 commented Jul 12, 2020

No description provided.

@kanav99 kanav99 mentioned this pull request Jul 12, 2020
@kanav99
Copy link
Contributor Author

kanav99 commented Jul 12, 2020

I think there are still some errors

@kanav99
Copy link
Contributor Author

kanav99 commented Jul 12, 2020

Issue is, mapreduce doesn't call the reducing function if there is only one element

julia> mapreduce(i->[1],hcat, [1])
1-element Array{Int64,1}:
 1

julia> mapreduce(i->[1],hcat, [1,2])
1×2 Array{Int64,2}:
 1  1

@ChrisRackauckas ChrisRackauckas merged commit 4d05916 into JuliaDiff:master Jul 12, 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.

2 participants