[julia-users] Re: output sharing memory with input
On Wednesday, April 23, 2014 12:11:50 PM UTC-4, Ethan Anderes wrote: Ok, so I've got not hits on this question. Let me try to make it more concrete: Is there a command which can tell me the variables `a` and `b` in the following commands are refering to the same space in memory: a = rand(2,2) b = vec(a) The command is(a,b) returns false. pointer(a) == pointer(b) returns true.
[julia-users] Re: output sharing memory with input
Thanks Steven. That helps. So I can infer that no two variables can share overlapping memory without their pointers being the same?