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

restore broadcasting array±scalar operations #7226

Merged
merged 2 commits into from
Jun 17, 2014

Conversation

stevengj
Copy link
Member

As recently discussed in #5810, the deprecation of broadcasting + and - for arrays and scalars, while theoretically removing some ambiguity for the case of matrix+scalar (though it is not clear that this has ever been a problem in practice), seems to cause more annoyance than it is worth, and will be a continual headache for users migrating from NumPy, Matlab, etc.

This patch restores those functions.

@stevengj
Copy link
Member Author

Okay to merge, as per apparent consensus in #5810?

@StefanKarpinski
Copy link
Sponsor Member

Any reason for these not to be AbstractArrays?

@stevengj
Copy link
Member Author

No, they can be AbstractArrays. I made them StridedArrays just to match the definitions of .+ etc.

JeffBezanson added a commit that referenced this pull request Jun 17, 2014
restore broadcasting array±scalar operations
@JeffBezanson JeffBezanson merged commit cd36048 into JuliaLang:master Jun 17, 2014
@ViralBShah
Copy link
Member

What a relief!

@stevengj stevengj mentioned this pull request Jun 17, 2014
simonster added a commit to JuliaStats/DataArrays.jl that referenced this pull request Jun 19, 2014
Remove deprecations, restore NA broadcasting methods, and add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs decision A decision on this change is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants