forked from stdlib-js/stdlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepl.txt
More file actions
35 lines (27 loc) · 958 Bytes
/
repl.txt
File metadata and controls
35 lines (27 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{{alias}}( x, dim, sizes, writable )
Returns a view of an input ndarray in which a specified dimension is
expanded over multiple dimensions.
Parameters
----------
x: ndarray
Input array.
dim: integer
Dimension to be unflattened. If provided an integer less than zero,
the dimension index is resolved relative to the last dimension, with
the last dimension corresponding to the value `-1`.
sizes: ArrayLikeObject<NonNegativeInteger>
New shape of the unflattened dimension.
writable: boolean
Boolean indicating whether the returned ndarray should be writable.
Returns
-------
out: ndarray
Output array.
Examples
--------
> var x = {{alias:@stdlib/ndarray/array}}( [ 1, 2, 3, 4, 5, 6 ] )
<ndarray>[ 1, 2, 3, 4, 5, 6 ]
> var out = {{alias}}( x, 0, [ 2, 3 ], false )
<ndarray>[ [ 1, 2, 3 ], [ 4, 5, 6 ] ]
See Also
--------