SparseArrays.jl icon indicating copy to clipboard operation
SparseArrays.jl copied to clipboard

Julia 1.9.0 doesn't drop zeros when assigning to a sparse array only when the elements are Big

Open LilithHafner opened this issue 1 year ago • 22 comments

MWE:

julia> A = spzeros(BigInt, 3, 3); A[1] = 0; A
3×3 SparseMatrixCSC{BigInt, Int64} with 1 stored entry:
 0  ⋅  ⋅
 ⋅  ⋅  ⋅
 ⋅  ⋅  ⋅

This change was introduced in https://github.com/JuliaSparse/SparseArrays.jl/pull/296.

Originally posted by @YingboMa in https://github.com/JuliaLang/julia/issues/49766

LilithHafner avatar May 13 '23 02:05 LilithHafner