-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fallback for copying views into sparse matrices #30895
Fallback for copying views into sparse matrices #30895
Conversation
Once again a bit in doubt about where to best put this code. |
All tests failing seem to suggest something is wrong (I haven't looked inside yet). |
Yeah, |
I just copied that code from the other PR, sorry - I could replace with Base.copy(a::SubArray{<:Any,<:Any,<:Union{SparseVector, SparseMatrixCSC}}) = a.parent[a.indices...] ? |
Yeah, sorry, I should have made it clear that was psuedocode! Using a Edit: oh, but if you want to use the |
OK, I've moved it there and replaced |
Failure on the Travis Mac build looks unrelated/spurious, it's a GitError "can't connnect to github" |
* Fallback for copying views into sparse matrices * SparseArray --> SparseVecOrMat * move copy method to sparsevector * use the union explicitly (cherry picked from commit d6bcb5a)
This is a more specialized version of #30889, requested for backporting.