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

SparseMatrixCSC + Zeros returns dense matrix

Open blegat opened this issue 5 months ago • 0 comments

julia> x = sparse([1, 2], [1, 2], [1.0, 2.0])
2×2 SparseMatrixCSC{Float64, Int64} with 2 stored entries:
 1.0   ⋅ 
  ⋅   2.0

julia> y = FillArrays.Zeros{Float64}(2, 2)
2×2 Zeros{Float64}

julia> x + y
2×2 Matrix{Float64}:
 1.0  0.0
 0.0  2.0

blegat avatar Jul 31 '25 06:07 blegat