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
29 lines (23 loc) · 706 Bytes
/
repl.txt
File metadata and controls
29 lines (23 loc) · 706 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
{{alias}}( ndims, arrays )
Converts a list of values (scalars and/or ndarrays) to ndarrays having at
least a specified number of dimensions.
Parameters
----------
ndims: number
Minimum number of dimensions.
arrays: ArrayLikeObject
List of scalars and/or ndarrays.
Returns
-------
out: Array<ndarray>
List of ndarrays.
Examples
--------
> var x = {{alias:@stdlib/ndarray/array}}( [ [ 1, 2 ], [ 3, 4 ] ] )
<ndarray>[ [ 1, 2 ], [ 3, 4 ] ]
> var y = {{alias:@stdlib/ndarray/array}}( [ 5, 6, 7, 8 ] )
<ndarray>[ 5, 6, 7, 8 ]
> var out = {{alias}}( 3, [ x, y ] )
[ <ndarray>, <ndarray> ]
See Also
--------