@stdlib/strided
Version:
Strided.
29 lines (21 loc) • 465 B
Plain Text
{{alias}}( N, stride )
Returns the index offset which specifies the location of the first indexed
value in a strided array.
Parameters
----------
N: integer
Number of indexed elements.
stride: integer
Index increment.
Returns
-------
offset: integer
Index offset.
Examples
--------
> var out = {{alias}}( 10, -10 )
90
> out = {{alias}}( 10, 10 )
0
See Also
--------