OffsetArrays, transpose, no_offset_view

Why doesn’t no_offset_view remove offsets from a transposed OffsetArray ?

using OffsetArrays
const nooffs = OffsetArrays.no_offset_view
oa = zeros(-1:2, 0:4)
oa_tn = transpose(nooffs(oa))
oa_nt = nooffs(transpose(oa))
@show typeof(oa)    # OffsetArray
@show typeof(oa_tn) # Array
@show typeof(oa_nt) # OffsetArray !!!

And how do you remove offsets if you don’t know the type of the array you are given?

it looks like the offsets are removed though?

julia> oa_nt |> axes
(OffsetArrays.IdOffsetRange(values=1:5, indices=1:5), OffsetArrays.IdOffsetRange(values=1:4, indices=1:4))