@@ -1675,22 +1675,23 @@ Some multi-dimensional objects can be viewed in a linear form.
16751675When this happens, the right-most term in the object's range varies fastest in
16761676the linearization.
16771677
1678- A three-dimensional element [code]#id{id0, id1, id2}# within a three-dimensional
1679- object of range [code]#range{r0, r1, r2}# has a linear position defined by:
1678+ A three-dimensional element [code]#+id{id0, id1, id2}+# within a
1679+ three-dimensional object of range [code]#+range{r0, r1, r2}+# has a linear
1680+ position defined by:
16801681[latexmath]
16811682++++
16821683id2 + (id1 \cdot r2) + (id0 \cdot r1 \cdot r2)
16831684++++
16841685
1685- A two-dimensional element [code]#id{id0, id1}# within a two-dimensional
1686- [code]#range{r0, r1}# follows a similar equation:
1686+ A two-dimensional element [code]#+ id{id0, id1}+ # within a two-dimensional
1687+ [code]#+ range{r0, r1}+ # follows a similar equation:
16871688[latexmath]
16881689++++
16891690id1 + (id0 \cdot r1)
16901691++++
16911692
1692- A one-dimensional element [code]#id{id0}# within a one-dimensional range
1693- [code]#range{r0}# is equivalent to its linear form.
1693+ A one-dimensional element [code]#+ id{id0}+ # within a one-dimensional range
1694+ [code]#+ range{r0}+ # is equivalent to its linear form.
16941695
16951696
16961697[[sec:multi-dim-subscript]]
@@ -1700,11 +1701,11 @@ Some multi-dimensional objects can be indexed using the subscript operator where
17001701consecutive subscript operators correspond to each dimension.
17011702The right-most operator varies fastest, as with standard {cpp} arrays.
17021703Formally, a three-dimensional subscript access [code]#a[id0][id1][id2]#
1703- references the element at [code]#id{id0, id1, id2}#.
1704+ references the element at [code]#+ id{id0, id1, id2}+ #.
17041705A two-dimensional subscript access [code]#a[id0][id1]# references the element at
1705- [code]#id{id0, id1}#.
1706+ [code]#+ id{id0, id1}+ #.
17061707A one-dimensional subscript access [code]#a[id0]# references the element at
1707- [code]#id{id0}#.
1708+ [code]#+ id{id0}+ #.
17081709
17091710
17101711== Implementation options
0 commit comments