@stdlib/array
Version:
Arrays.
31 lines (21 loc) • 710 B
Plain Text
{{alias}}( x, shape, strides, offset )
Converts a strided array to a five-dimensional nested array.
The function assumes that the input array is compatible with the specified
array shape, dimension strides, and index offset.
Parameters
----------
x: ArrayLikeObject
Input array.
shape: Array<integer>
Array shape.
strides: Array<integer>
Dimension strides.
offset: integer
Index of the first indexed value in the input array.
Examples
--------
> var x = [ 1.0, 2.0, 3.0, 4.0 ];
> var y = {{alias}}( x, [ 1, 1, 1, 2, 2 ], [ 4, 4, 4, 2, 1 ], 0 )
[ [ [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ] ] ]
See Also
--------