Hi I understand that for a vector a
b = a
makes b
refer to a
But this is my lack of understanding, why then does varinfo() show that b
occupies the same amount of memory as a
?
julia> a = ones(2)
2-element Array{Float64,1}:
1.0
1.0
julia> b = a
2-element Array{Float64,1}:
1.0
1.0
julia> InteractiveUtils.varinfo()
name size summary
---------------- ----------- --------------------------
Base Module
Core Module
InteractiveUtils 162.930 KiB Module
Main Module
a 56 bytes 2-element Array{Float64,1}
ans 56 bytes 2-element Array{Float64,1}
b 56 bytes 2-element Array{Float64,1}