repl.txt (742B)
1 2 {{alias}}( len, shape, strides, offset ) 3 Returns a boolean indicating if a buffer length is compatible with provided 4 ndarray meta data. 5 6 Parameters 7 ---------- 8 len: integer 9 Buffer length (number of elements). 10 11 shape: ArrayLike 12 Array shape. 13 14 strides: ArrayLike 15 Stride array. 16 17 offset: integer 18 Location of the first indexed value. 19 20 Returns 21 ------- 22 bool: boolean 23 Boolean indicating if a buffer length is compatible. 24 25 Examples 26 -------- 27 > var d = [ 2, 3, 10 ]; 28 > var s = [ 30, -10, 1 ]; 29 > var o = 20; 30 > var bool = {{alias}}( 100, d, s, o ) 31 true 32 > o = 80; 33 > bool = {{alias}}( 100, d, s, o ) 34 false 35 36 See Also 37 -------- 38