Returns the index offset which specifies the location of the first indexed value in a multidimensional array based on a stride array.
array shape
stride array
offset
var shape = [ 2, 3, 10 ]; var strides = [ 30, -10, 1 ]; var offset = strides2offset( shape, strides ); // returns 20
Returns the index offset which specifies the location of the first indexed value in a multidimensional array based on a stride array.