time-to-botec/squiggle/node_modules/@stdlib/ndarray/base/strides2offset/docs/repl.txt

29 lines
511 B
Plaintext
Raw Normal View History

{{alias}}( shape, strides )
Returns the index offset which specifies the location of the first indexed
value in a multidimensional array based on a stride array.
Parameters
----------
shape: ArrayLike
Array shape.
strides: ArrayLike
Stride array.
Returns
-------
offset: integer
Index offset.
Examples
--------
> var d = [ 2, 3, 10 ];
> var s = [ 30, -10, 1 ];
> var out = {{alias}}( d, s )
20
See Also
--------