Hello all you happy people!
I have been thinking about asking this question but did not know how to
So, if my question is ambiguous please let me know and I will try to
Given an NxN array or even an NxM array mA from which at times I break
into sub arrays, I would like to be able to manipulate the sub arrays
have the changes dynamically propagated to the main array mA.
For example, assume I have main array mA as listed below.
From mA I strip say row, which I named sAr2 and which has values:
[D, C, B, A]
I also created sub arrays of columns, as listed below and furthermore, I
created quadrants sub arrays.
I would like to make a change on any of the sub arrays and have that
propagated simultaneously to the main array.
For instance, say I set sAr2 = Y, I would like element mA[2,1] to
to Y from C.
The same should happen if and when I change any of the sub arrays.
The same should happen if and when I change the main array.
Is this possible say in 1.9.1? or do I need some kind of GEM?
mA = [
[A, B, C, D],
[B, A, C, D],
[D, C, B, A],
[C, A, D, B]
sAr0 (sub array row 0 to row n, where n is 3 for this case)
sAr0 = [A, B, C, D]
sAr1 = [B, A, C, D]
sAr2 = [D, C, B, A]
sAr3 = [C, A, D, B]
sAc0 (sub array column 0 to column n, where n is 3 for this case)
sAc0 = [A, B, D, C]
sAc1 = [B, A, C, A]
sAc2 = [C, C, B, D]
sAc3 = [D, D, A, B]
Four “quadrants?” arrays as follows:
[[B, D A, B]]