repl.txt (511B)
1 2 {{alias}}( shape, strides ) 3 Returns the index offset which specifies the location of the first indexed 4 value in a multidimensional array based on a stride array. 5 6 Parameters 7 ---------- 8 shape: ArrayLike 9 Array shape. 10 11 strides: ArrayLike 12 Stride array. 13 14 Returns 15 ------- 16 offset: integer 17 Index offset. 18 19 Examples 20 -------- 21 > var d = [ 2, 3, 10 ]; 22 > var s = [ 30, -10, 1 ]; 23 > var out = {{alias}}( d, s ) 24 20 25 26 See Also 27 -------- 28