-
-
Notifications
You must be signed in to change notification settings - Fork 804
/
Copy pathrepl.txt
35 lines (28 loc) · 1019 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
31
32
33
34
{{alias}}( arrays, shape, fcn )
Applies a quinary callback to elements in five three-dimensional nested
input arrays and assigns results to elements in a three-dimensional nested
output array.
Parameters
----------
arrays: ArrayLikeObject
Array-like object containing five input nested arrays and one output
nested array.
shape: Array<integer>
Array shape.
fcn: Function
Quinary callback.
Examples
--------
> function fcn( x, y, z, w, v ) { return x + y + z + w + v; };
> var x = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ];
> var y = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ];
> var z = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ];
> var w = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ];
> var v = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ];
> var out = [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ];
> var shape = [ 1, 2, 2 ];
> {{alias}}( [ x, y, z, w, v, out ], shape, fcn );
> out
[ [ [ 5.0, 10.0 ], [ 15.0, 20.0 ] ] ]
See Also
--------