You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OffsetArray merely provides a map between indices, so it should always have the same element type as the parent array. Currently something like this is possible:
julia> b =OffsetArray{Float64,2,Matrix{ComplexF64}}(zeros(ComplexF64,2,2), (1,1))
2×2OffsetArray(::Array{Complex{Float64},2}, 2:3, 2:3) with eltype Float64 with indices 2:3×2:3:0.0+0.0im0.0+0.0im0.0+0.0im0.0+0.0im
julia> b[1]
0.0+0.0im
julia>eltype(b)
Float64
This should be a bug. Would disallowing this be construed as a breaking change?
The text was updated successfully, but these errors were encountered:
OffsetArray
merely provides a map between indices, so it should always have the same element type as the parent array. Currently something like this is possible:This should be a bug. Would disallowing this be construed as a breaking change?
The text was updated successfully, but these errors were encountered: