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. The documentation for vec doesn't give an 
indication that `a` and `b` are coupled. 

The reason I ask is that as array-views get implimented, I'm worried that 
functions like diagm, hcat and transpose will return values which are subtly 
coupled with the arguments used to call these functions. To avoid this sutle 
coupling between varibales in my code, do I need to append `copy` each time I 
call these? At the very least it would be nice to have something like whos() 
which can show me which variables are coupled in my current namespace.

Thanks,
Ethan

Reply via email to