Skip to content

Conversation

@jumerckx
Copy link
Collaborator

@jumerckx jumerckx commented Mar 11, 2025

* also include the initial value of the accumulator to match Julia's behavior
@jumerckx jumerckx marked this pull request as draft March 11, 2025 14:17
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
return x
end

function mymapreducedim!(f, op, R, A)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure why this weird little dance with this indirection is needed, but it is needed as it doesn't work by just compileing Base.mapreducedim! directly...

@jumerckx jumerckx requested a review from avik-pal March 11, 2025 18:53
@jumerckx jumerckx marked this pull request as ready for review March 11, 2025 18:53
@avik-pal avik-pal merged commit 82aec7d into main Mar 11, 2025
56 checks passed
@avik-pal avik-pal deleted the jm/mapreducedim branch March 11, 2025 19:47
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.

3 participants