Open denius opened 1 year ago
Found source of errors: https://github.com/JuliaArrays/OffsetArrays.jl/blob/08dc3711b88930e59a27d1b870415c394219e4e0/src/axes.jl#L116
Here convert(T, offset)
, i.e. convert(UInt, -1)
.
Is it possible to solve this issue? I just need SparseVector
s with UInt
zero-based indices.
That's an interesting corner case, and I can't think of a quick fix. Perhaps we need to relax the type signatures of IdDffsetRange
so that the offsets may be signed. Unfortunately, this will need to be benchmarked quite a bit, so it'll take a while to get added. If you have the time, and you're familiar with the package, please feel free to make a PR
Hello,
It is a strange issue or maybe I'm missing something. Is it issue of
SparseArrays
orOffsetArrays
?With
UInt64
can't createOffsetArray(SparseVector{Float64, UInt64}, 0:2)
, MWE:With
UInt32
OffsetArray
created, but can't display it in REPL:Environment:
Thanks.