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

BUG: sparse: fix a bug in sparsetools input dtype resolution #5498

Merged
merged 1 commit into from Nov 21, 2015

Conversation

pv
Copy link
Member

@pv pv commented Nov 15, 2015

Ensure the determined common input dtype for the c++ code is such that
all inputs can be safely cast into it. Also require that the common
dtype can be safely cast to output arguments.

Add tests. Remove some upcasts that this makes unnecessary.

Fixing up the issue mentioned in my comment at gh-5213
Typically, this bug was not triggered, since the sparse code Python side tends to be careful with the dtypes.

Ensure the determined common input dtype for the c++ code is such that
all inputs can be safely cast into it. Also require that the common
dtype can be safely cast to output arguments.

Add tests. Remove some upcasts that this makes unnecessary.
@rgommers rgommers added scipy.sparse maintenance Items related to regular maintenance tasks labels Nov 21, 2015
perimosocordiae added a commit that referenced this pull request Nov 21, 2015
BUG: sparse: fix a bug in sparsetools input dtype resolution
@perimosocordiae perimosocordiae merged commit cc743b9 into scipy:master Nov 21, 2015
@perimosocordiae
Copy link
Member

This looks good and Travis is happy. Merging.

@ev-br ev-br added this to the 0.17.0 milestone Nov 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.sparse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants