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

fix shape corner cases in sparse broadcast!(f, C, A, B) #20937

Merged
merged 2 commits into from
Mar 9, 2017

Conversation

Sacha0
Copy link
Member

@Sacha0 Sacha0 commented Mar 7, 2017

Sparse broadcast!(f, C, A, B) produces incorrect results where destination C's shape does not match the broadcast-shape of sources A and B. (This issue is the analog of that described and fixed in #19986 for broadcast!(f, C, A).) This pull request fixes that issue and strengthens associated tests (first commit covers zero-preserving functions, and the second commit not-zeropreserving functions). Best!

Sacha0 added 2 commits March 7, 2017 12:45
Specifically, fix zero-preserving sparse broadcast!(f, C, A, B) where C's shape does not match the broadcast shape of A and B.
Strengthen associated tests.
… A, B).

Specifically, fix not-zero-preserving sparse broadcast!(f, C, A, B) where C's shape does not match the broadcast shape of A and B.
Strengthen associated tests.
@Sacha0 Sacha0 added bugfix This change fixes an existing bug sparse Sparse arrays broadcast Applying a function over a collection labels Mar 7, 2017
@Sacha0 Sacha0 added this to the 0.6.x milestone Mar 7, 2017
@tkelman tkelman merged commit 9e6b5fd into JuliaLang:master Mar 9, 2017
@Sacha0
Copy link
Member Author

Sacha0 commented Mar 9, 2017

Thanks Tony!

@Sacha0 Sacha0 deleted the fourbcbang branch March 9, 2017 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
broadcast Applying a function over a collection bugfix This change fixes an existing bug sparse Sparse arrays
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants