Numpy, map
Janko Hauser
jhauser at ifm.uni-kiel.de
Wed May 3 03:52:20 EDT 2000
There is an arraymap function in the cephes module. It does speed up
the code for longer loops.
>>> print cephes.arraymap.__doc__
c1,..,cn = arraymap(pyfunc,inputs{,outputtypes})
Loop over the elements of the inputs tuple, applying pyfunc to the
set formed from each element of inputs. Place the output in
arrays c1,...,cn. This function can make any pyfunc with scalar
inputs and scalar outputs emulate a ufunc.
HTH
__Janko
--
Institut fuer Meereskunde phone: 49-431-597 3989
Dept. Theoretical Oceanography fax : 49-431-565876
Duesternbrooker Weg 20 email: jhauser at ifm.uni-kiel.de
24105 Kiel, Germany
More information about the Python-list
mailing list