@stdlib/array
Version:
Arrays.
32 lines (24 loc) • 848 B
Plain Text
{{alias}}( arrays, shape, fcn )
Applies a binary callback to elements in two five-dimensional nested input
arrays and assigns results to elements in a five-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, 1, 2, 2 ];
> {{alias}}( [ x, y, z ], shape, {{alias:@stdlib/math/base/ops/add}} );
> z
[ [ [ [ [ 2.0, 4.0 ], [ 6.0, 8.0 ] ] ] ] ]
See Also
--------