Is there any reason why we use mappedarray rather than plain reinterpret here?
|
rawview(a::AbstractArray{T}) where {T<:FixedPoint} = mappedarray(reinterpret, y->T(y,0), a) |
This adds a few performance overheads to ImageMorphology JuliaImages/ImageMorphology.jl#103 because pointer of MappedArray is an invalid concept.
I notice this is written 4-6 years ago, is it because reinterpret for array type was not yet available?