Skip to content

Commit fefb4e0

Browse files
committed
"added repl.text"
1 parent e5ebdf3 commit fefb4e0

File tree

1 file changed

+39
-0
lines changed
  • lib/node_modules/@stdlib/array/base/broadcasted-quinary5D/docs

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
{{alias}}( arrays, shapes, fcn )
3+
Applies a quinary callback to elements in five broadcasted input arrays
4+
and assigns results to elements in a five-dimensional nested output array.
5+
6+
Parameters
7+
----------
8+
arrays: ArrayLikeObject
9+
Array-like object containing five input nested arrays and one output
10+
nested array.
11+
12+
shapes: Array<Array<integer>>
13+
Array shapes.
14+
15+
fcn: Function
16+
Quinary callback.
17+
18+
Examples
19+
--------
20+
> function fcn( x, y, z, w, v ) { return x + y + z + w + v; };
21+
> var x = filled5dBy( shapes[ 0 ], discreteUniform( -100, 100 ) );
22+
> var y = filled5dBy( shapes[ 1 ], discreteUniform( -100, 100 ) );
23+
> var z = filled5dBy( shapes[ 2 ], discreteUniform( -100, 100 ) );
24+
> var w = filled5dBy( shapes[ 3 ], discreteUniform( -100, 100 ) );
25+
> var v = filled5dBy( shapes[ 4 ], discreteUniform( -100, 100 ) );
26+
> var out = zeros5d( shapes[ 5 ] );
27+
> var shapes = [ 1, 2, 2, 2, 2 ],
28+
[ 2, 1, 2, 2, 2 ],
29+
[ 2, 2, 1, 2, 2 ],
30+
[ 2, 2, 2, 1, 2 ],
31+
[ 2, 2, 2, 2, 1 ],
32+
[ 2, 2, 2, 2, 2 ]
33+
> {{alias}}( [ x, y, z, w, v, out ], shapes, fcn );
34+
> out
35+
[ [ [ [ [ 12.0, 13.0 ] ], [ [ 13.0, 14.0 ] ] ] ], [ [ [ [ 13.0, 14.0 ] ], [ [ 14.0, 15.0 ] ] ] ] ]
36+
37+
See Also
38+
--------
39+

0 commit comments

Comments
 (0)