[julia-users] Re: output sharing memory with input

2014-04-23 Thread Steven G. Johnson


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

2014-04-23 Thread Ethan Anderes
Thanks Steven. That helps. So I can infer that no two variables can share 
overlapping memory without their pointers being the same?