</p>
<pre><code>z[1,1,1] = 1
z[2,1,1] = 2
z[1,2,1] = 3
z[2,2,1] = 4
z[1,3,1] = 5
z[2,3,1] = 6
z[1,1,2] = 7
z[2,1,2] = 8
z[1,2,2] = 9
z[2,2,2] = 10
z[1,3,2] = 11
z[2,3,2] = 12
z[1,1,3] = 13
z[2,1,3] = 14
z[1,2,3] = 15
z[2,2,3] = 16
z[1,3,3] = 17
z[2,3,3] = 18
z[1,1,4] = 19
z[2,1,4] = 20
z[1,2,4] = 21
z[2,2,4] = 22
z[1,3,4] = 23
z[2,3,4] = 24</code></pre>
<p>If the underlying 3-D array is stored as a 1-D array in last-index major format,
the innermost array elements will be contiguous.</p>
<p>The sequence of 