MapThread

Command: MapThread


Synopsis
[[a11 ... a1n]...[am1 ... amn]] {f} MapThread ->
[f(a11 a21 ... am1)...f(a1n a2n ... amn)]
References
This function implements the simple version of Mathematica's MapThread
File
sli/sliarray.cc
Parameters
the first parameter is a list of m arrays of equal size n.
The second parameter is a procedure which takes m arguments and returns
a single value.
Description
MapThread is like a multidimensional Map. It applies the function of
to corresponding elements of m argument arrays.

Examples
[[1 2][3 4]] {add} MapThread -> [4 6]
[[1 2 3 4] [1 1 1 1]] {add} MapThread -> [2 3 4 5]