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

MAINT: sparse: warn on todia() with many diagonals #5235

Merged
merged 2 commits into from
Oct 11, 2015

Conversation

perimosocordiae
Copy link
Member

The 100 number is arbitrary, but it's what the no-op condition was checking for previously.

This PR should also yield minor speedups by using the return_inverse flag of np.unique, instead of constructing the inverse indices manually.

Also: minor optimization using `return_inverse=True`
@rgommers rgommers added scipy.sparse maintenance Items related to regular maintenance tasks labels Oct 11, 2015
@rgommers rgommers added this to the 0.17.0 milestone Oct 11, 2015
rgommers added a commit that referenced this pull request Oct 11, 2015
MAINT: sparse: warn on todia() with many diagonals
@rgommers rgommers merged commit 6f355fd into scipy:master Oct 11, 2015
@rgommers
Copy link
Member

LGTM, merged. Thanks @perimosocordiae

@perimosocordiae perimosocordiae deleted the patch-9 branch January 16, 2017 20:35
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.

2 participants