> a = reshape(1:4,2,2)
> b = reshape(a,4)
> a[1] = 99
> a
2x2 Int32 Array:
99 3
2 4
> b
4-element Int32 Array:
99
2
3
4
Fine, it works as expected.
Let's try this the other way around:
> a = reshape(1:4,4)
> b = reshape(a,2,2)
> a[1] = 99
> a
2x2 Int32 Array:
99 3
2 4
> b
4-element Int32 Array:
99
2
3
4
It works again.
Now, let's get rid of the first reshape:
> a = [1:4]
> b = reshape(a,2,2)
> a[1] = 99
> a
4-element Int32 Array:
99
2
3
4
> b
2x2 Int32 Array:
1 3
2 4