-
-
Notifications
You must be signed in to change notification settings - Fork 804
/
Copy pathrepl.txt
31 lines (24 loc) · 835 Bytes
/
repl.txt
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
{{alias}}( arrays, shape, fcn )
Applies a binary callback to elements in two four-dimensional nested input
arrays and assigns results to elements in a four-dimensional nested output
array.
Parameters
----------
arrays: ArrayLikeObject
Array-like object containing two input nested arrays and one output
nested array.
shape: Array<integer>
Array shape.
fcn: Function
Binary callback.
Examples
--------
> var x = [ [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ] ];
> var y = [ [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ] ];
> var z = [ [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ] ];
> var shape = [ 1, 1, 2, 2 ];
> {{alias}}( [ x, y, z ], shape, {{alias:@stdlib/number/float64/base/add}} );
> z
[ [ [ [ 2.0, 4.0 ], [ 6.0, 8.0 ] ] ] ]
See Also
--------