Skip to content

Simplify broadcast code generation #643

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

Merged
merged 1 commit into from
Sep 14, 2019
Merged

Conversation

TheBB
Copy link
Contributor

@TheBB TheBB commented Aug 1, 2019

This simplifies code according to a tip left in a comment, by using CartesianIndices instead of generating indices manually. This also fixes #642 by not trying to increment an empty index.

I broke a long line there according to personal taste, if that's okay.

@TheBB TheBB force-pushed the fix-scalar-bcast branch from 5a3d2ee to f1f4417 Compare August 1, 2019 16:24
@coveralls
Copy link

coveralls commented Aug 1, 2019

Coverage Status

Coverage decreased (-0.1%) to 81.535% when pulling 877ca39 on TheBB:fix-scalar-bcast into 560b395 on JuliaArrays:master.

@TheBB TheBB force-pushed the fix-scalar-bcast branch from f1f4417 to 877ca39 Compare August 2, 2019 07:10
@c42f c42f added the cleanup label Aug 2, 2019
Copy link
Member

@andyferris andyferris left a comment

Choose a reason for hiding this comment

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

Cool, nice clean up.

@c42f c42f added the bugfix label Sep 14, 2019
@c42f c42f merged commit f669465 into JuliaArrays:master Sep 14, 2019
@c42f
Copy link
Member

c42f commented Sep 14, 2019

I haven't looked through this in detail, but it's a lot neater, Andy has approved and the tests pass, so I merged it. Thank you @TheBB!

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.

Broadcast operations resulting in Scalars fail
5 participants