-
-
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
SparseMatrixCSC as a general sparse container: Setindex!(…) not working for SparseMatrixCSC with vector elements (v0.7) #29034
Comments
On discourse Sukera pointed out, that the issue originates from the following lines: julia/stdlib/SparseArrays/src/sparsematrix.jl Line 2538 in c8450d8
|
Sorry, accidently closed it... |
To mirror my thinking on discourse on here: What I think is happening is an endless convert loop, as the |
In my application I have a sparse matrix, but every element of this matrix is a discretised function. If I try to use
SparseMatrixCSC{Array{Float64,1},Int64}
as the container,setindex!(...)
in 0.7 throws a stackoverflow:This can be solved by using broadcasted
setindex!(...)
, but it does not solve the problem adding new elements to the array:I can work around it using custom structures, but this has worked in 0.6.x.
The version producing the bug
The text was updated successfully, but these errors were encountered: