stride
The increment, in values, between consecutive elements in each dimension.
Declaration
var stride: (Int, Int, Int, Int, Int, Int, Int, Int)Discussion
Specify the stride of an array descriptor the define the increment between neighboring elements in each dimension. For example, the following values represent a 2D row-major matrix:
[ 10, 20, 30,
40, 50, 60,
70, 80, 90 ]The stride for the first dimension is 1, for example, the increment between 50 and 60 is a single element. The stride for the second dimension is 3, for example, the stride between 50 and 80 is three elements.