I have a couple questions about Arrays.
If I do
A = [1, 2, 3] B = [4, 5, 6] M = [A, B] A = 0
I can see that the first vector in M has been changed to [0, 2, 3]. So from this I gather that M is actually storing pointers to the Vectors A and B.
Now I want to add another vector to M.
push!(M, [10, 11, 12])
What is Julia doing here? Is it adding another pointer to M, kinda like a LinkedList in Java? Or is it remaking all of M?
If M gets very large, is this an efficient way of adding more vectors to M?
(I want to stick with an Array of Arrays because I like being able to pop! and push! them efficiently.)
On a similar note, when I say A = 0, is Julia modifying the existing array A, or is it rewriting the whole thing?