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

zero & keytype always return Int64 for the index type

Open dpinol opened this issue 1 year ago • 0 comments

julia> using SparseArrays

julia> v=spzeros(Int,Int32,10)
10-element SparseVector{Int64, Int32} with 0 stored entries

julia> keytype(v)
Int64

julia> zero(v)
10-element SparseVector{Int64, Int64} with 0 stored entries

dpinol avatar Oct 25 '24 16:10 dpinol