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
38 lines (30 loc) · 1.09 KB
/
repl.txt
File metadata and controls
38 lines (30 loc) · 1.09 KB
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
36
37
{{alias}}( arrays )
Copies values from a one-dimensional double-precision complex
floating-point ndarray `x` into a one-dimensional double-precision
complex floating-point ndarray `y`.
If provided an empty input ndarray, the function returns the output ndarray
unchanged.
Parameters
----------
arrays: ArrayLikeObject<ndarray>
Array-like object containing an input ndarray and an output ndarray.
Returns
-------
out: ndarray
Output ndarray.
Examples
--------
> var xbuf = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
> var ybuf = new {{alias:@stdlib/array/complex128}}( [ 0.0, 0.0, 0.0, 0.0 ] );
> var dt = 'complex128';
> var sh = [ xbuf.length ];
> var st = [ 1 ];
> var oo = 0;
> var ord = 'row-major';
> var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord );
> var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord );
> {{alias}}( [ x, y ] );
> y
<ndarray>[ <Complex128>[ 1.0, 2.0 ], <Complex128>[ 3.0, 4.0 ] ]
See Also
--------