JuliaArrays / FillArrays.jl

Julia package for lazily representing matrices filled with a single entry
https://juliaarrays.github.io/FillArrays.jl/
MIT License
181 stars 38 forks source link

Let `OneElement` be `AbstractSparseArray`? #344

Open putianyi889 opened 9 months ago

putianyi889 commented 9 months ago

For general purposes where the type doesn't propagate, it should be promoted to a concrete sparse array. Example:

jishnub commented 9 months ago

Could you make a PR?

On second thoughts, this would require a hard dependency on SparseArrays

putianyi889 commented 9 months ago

this would require a hard dependency on SparseArrays

create a new package StaticSparseArrays?

looks like SparseArrays.jl is mostly SparseMatrixCSCs.jl and there is not much generic interface...