[
Example 1:â
The
gslice
specification
start = 3
length = {2, 4, 3}
stride = {19, 4, 1}
yields the sequence of one-dimensional indices
k=3+(0,1)Ã19+(0,1,2,3)Ã4+(0,1,2)Ã1
which are ordered as shown in the following table:
(i0,i1,i2,k)=
(0,ââ0,ââ0,ââ 3),
(0,ââ0,ââ1,ââ 4),
(0,ââ0,ââ2,ââ 5),
(0,ââ1,ââ0,ââ 7),
(0,ââ1,ââ1,ââ 8),
(0,ââ1,ââ2,ââ 9),
(0,ââ2,ââ0,ââ11),
(0,ââ2,ââ1,ââ12),
(0,ââ2,ââ2,ââ13),
(0,ââ3,ââ0,ââ15),
(0,ââ3,ââ1,ââ16),
(0,ââ3,ââ2,ââ17),
(1,ââ0,ââ0,ââ22),
(1,ââ0,ââ1,ââ23),
âĻ
(1,ââ3,ââ2,ââ36)