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 sparse matrix colon indexing #14803

Merged
merged 1 commit into from
Jan 26, 2016
Merged

Conversation

tanmaykm
Copy link
Member

Added missing method getindex(A::SparseMatrixCSC, ::Colon, i).
The AbstractArray fallback was much slower.

Added missing method `getindex(A::SparseMatrixCSC, ::Colon, i)`.
The `AbstractArray` fallback was much slower.
@mbauman
Copy link
Sponsor Member

mbauman commented Jan 26, 2016

LGTM. I had erroneously deleted this when I added the sparse vector's [::Colon, ::Integer] indexing method… but of course this translation is still needed for non-integer indices. Thanks!

@tkelman tkelman added the domain:arrays:sparse Sparse arrays label Jan 26, 2016
tanmaykm added a commit that referenced this pull request Jan 26, 2016
fix sparse matrix colon indexing
@tanmaykm tanmaykm merged commit 41c2f8f into JuliaLang:master Jan 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants