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
37 lines (29 loc) · 1.05 KB
/
repl.txt
File metadata and controls
37 lines (29 loc) · 1.05 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
{{alias}}( arrays )
Copies values from a one-dimensional single-precision floating-point ndarray
`x` into a one-dimensional single-precision 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/float32}}( [ 4.0, 2.0, -3.0, 5.0, -1.0 ] );
> var ybuf = new {{alias:@stdlib/array/float32}}( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] );
> var dt = 'float32';
> 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>[ 4.0, 2.0, -3.0, 5.0, -1.0 ]
See Also
--------