Examples of memory aliasing

wulpuqu
Wed, 18 Nov 2020 14:59:34 +0000
General Usage

Hello,

I was reading the definition of AbstractArray in Base and I was searching for concrete cases of memory aliasing with two AbstractArrays.

A simple case with SubArrays.

julia> A=randn(10)

julia> Base.mightalias(A,view(A,1:5))
true

Do you know other examples in Base without using SubArrays ?

3 posts - 2 participants