Command: MapThread

NEST HelpDesk Command Index NEST Quick Reference
Name:
MapThread - apply a procedure to corresponding elements of n array
Synopsis:
[[a11 ... a1n]...[am1 ... amn]] {f} MapThread ->
[f(a11, a21,... am1)...f(a1n, a2n,...,amn)]
Examples:
[[1 2][3 4]] {add} MapThread -> [4 6]
[[1 2 3 4] [1 1 1 1]] {add} MapThread -> [2 3 4 5]
Description:
MapThread is like a multidimensional Map. It applies the function
of to corresponding elements of m argument arrays.
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.
References:
This function implements the simple version of Mathematica's
MapThread
SeeAlso:
Source:
/var/www/debian/nest/nest-simulator-2.20.0/sli/sliarray.cc
NEST HelpDesk Command Index NEST Quick Reference

© 2004 The NEST Initiative