Why is `IndexStyle` specialized for `Base.OneTo`?
jishnub opened this issue · comments
Jishnu Bhattacharya commented
FillArrays.jl/src/FillArrays.jl
Line 59 in de36a50
This means
julia> using StaticArrays
julia> f = Fill(1, (SOneTo(2),))
2-element Fill{Int64, 1, Tuple{SOneTo{2}}} with indices SOneTo(2), with entries equal to 1
julia> IndexStyle(f)
IndexCartesian()
This may use linear indexing as well, though.
Sheehan Olver commented
I doubt there is a reason for this. Perhaps we were thinking of offset axes?