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

Remove kludgy VectorStyle and MatrixStyle #26430

Merged
merged 2 commits into from
Mar 16, 2018
Merged

Remove kludgy VectorStyle and MatrixStyle #26430

merged 2 commits into from
Mar 16, 2018

Conversation

mbauman
Copy link
Sponsor Member

@mbauman mbauman commented Mar 12, 2018

These broadcast styles were introduced in response to #23939 (comment) as a way to limit the "greediness" of Sparse's broadcasting implementation -- sparse only wanted to allow known combinations of array types (including Array but not any AbstractArray). The idea was to allow us to gradually improve the sparse broadcast implementation over 1.x in a non-breaking manner. Unfortunately, these special styles for Array make defining new styles in the heirarchy a bit of a pain (ref. #23939 (comment)), and it was making my life harder in getting the 1.0 breaking changes in.

This commit removes these special broadcast styles in favor of just having Sparse identify the cases itself and re-dispatch back into the default implementation in the cases it doesn't know how to handle.

@mbauman mbauman added domain:arrays [a, r, r, a, y, s] domain:arrays:sparse Sparse arrays broadcast labels Mar 12, 2018
@mbauman mbauman requested a review from Sacha0 March 12, 2018 18:50
@mbauman mbauman added the kind:deprecation This change introduces or involves a deprecation label Mar 14, 2018
These broadcast styles were introduced in response to #23939 (comment) as a way to limit the "greediness" of Sparse's broadcasting implementation -- sparse only wanted to allow known combinations of array types (including Array but not any AbstractArray). The idea was to allow us to gradually improve the sparse broadcast implementation over 1.x in a non-breaking manner.  Unfortunately, these special styles for Array make defining new styles in the heirarchy a bit of a pain (ref. #23939 (comment)), and it was making my life harder in getting the 1.0 breaking changes in.

This commit removes these special broadcast styles in favor of just having Sparse identify the cases itself and re-dispatch back into the default implementation in the cases it doesn't know how to handle.
@mbauman mbauman merged commit 83b0231 into master Mar 16, 2018
@mbauman mbauman deleted the mb/nomatrixstyle branch March 16, 2018 17:54
@Sacha0
Copy link
Member

Sacha0 commented Mar 17, 2018

I look forward to seeing the upside downstream :).

@mbauman mbauman added the domain:broadcast Applying a function over a collection label Apr 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:arrays:sparse Sparse arrays domain:arrays [a, r, r, a, y, s] domain:broadcast Applying a function over a collection kind:deprecation This change introduces or involves a deprecation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants