time-to-botec/squiggle/node_modules/@stdlib/ndarray/base/strides2offset/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

29 lines
511 B
Plaintext

{{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
--------