JuliaArrays / JuliaArrays/FillArrays.jl

SparseMatrixCSC + Zeros returns dense matrix

Open
#412 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
187
Forks
41
Avg merge
17h 29m
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the Julia reproducer from the issue and inspect how SparseMatrixCSC plus FillArrays.Zeros is dispatched. Identify the expected sparse result and add a regression test covering this operation; done means the addition no longer produces an unexpectedly dense matrix.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.