powered by
Suppose the array is of dimension n1 * n2 * n3, then pillar [i, j, ] is list element i + n1 * (j - 1), so the first element is pillar [1, 1, ], the second is pillar [1, 2, ] and so on.
n1 * n2 * n3
[i, j, ]
i + n1 * (j - 1)
[1, 1, ]
[1, 2, ]
ListPillars(arr3d)
A 3-dimensional array.
A list.
PillarsListToArr
# NOT RUN { arr <- array(1:27, dim = rep(3, 3)) print(arr) ListPillars(arr) # }
Run the code above in your browser using DataLab