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

-0.0, storing zeros other than zero(eltype(v))

Open LilithHafner opened this issue 2 years ago • 0 comments

For almost any value and assignable expression in Julia, this holds:

expr = value
@assert expr === value

I wish this held, too:

v = spzeros(1)
value = -0.0
v[1] = value
@assert v[1] === value

LilithHafner avatar Nov 24 '22 08:11 LilithHafner