-
-
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
Make issparse handle nested wrappers #34308
Conversation
Perhaps OT, but can we just delete julia/stdlib/SparseArrays/src/sparsevector.jl Line 1040 in 3608c84
julia/stdlib/SparseArrays/src/sparsevector.jl Line 1045 in 3608c84
julia/stdlib/SparseArrays/src/sparsevector.jl Line 1049 in 3608c84
(See also #24645) |
I agree with the sentiment. Apparently I also agreed back in #24645 But since it is a breaking change, we can't delete it. So we might as well make it work well. That may or may not include making it work for these cases. Perhaps before doing this we should decide what it means. It probably should mean something about the cost of various operations. |
This errors because:
Which seems really silly and inconsistent to me. |
I thought we can't delete APIs that are in 1.0. |
922a031
to
ee61eab
Compare
Revisiting this. Since I apparently decided to open a second PR having forgotten i made this one.
|
The tests pass locally for me, so this should be good to go after a rebase. |
Done |
Follow up to: #34266
Handles all the existing cases, plus:
SubArrays
Diagonal
It all constant folds out: