repl.txt (820B)
1 2 {{alias}}( shape, strides, offset ) 3 Computes the maximum linear index in an underlying data buffer accessible to 4 an array view. 5 6 Parameters 7 ---------- 8 shape: ArrayLike 9 Array shape. 10 11 strides: ArrayLike 12 Stride array. 13 14 offset: integer 15 Location of the first indexed value based on the stride array. 16 17 Returns 18 ------- 19 out: integer 20 Maximum linear index in an underlying data buffer accessible to an array 21 view. 22 23 Examples 24 -------- 25 > var d = [ 2, 3, 10 ]; 26 > var s = [ 30, -10, 1 ]; 27 > var o = 20; 28 > var out = {{alias}}( d, s, o ) 29 59 30 > s = [ 30, 10, 1 ]; 31 > o = 0; 32 > out = {{alias}}( d, s, o ) 33 59 34 > s = [ -30, -10, -1 ]; 35 > o = 59; 36 > out = {{alias}}( d, s, o ) 37 59 38 39 See Also 40 -------- 41