|Subject:||cellfun/arrayfun vs iteration|
|Date:||Thu, 21 Apr 2011 10:29:48 +0200|
|User-agent:||Mozilla/5.0 (X11; U; Linux i686; ca-ES; rv:220.127.116.11) Gecko/20110223 Thunderbird/3.1.8|
Hi,In terms of speed, is it better to use the cellfun/arrayfun functions or to iterate explicitly using "for" loops?
In Matlab it appears that it is better to iterate: see http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/eb6fe76e1856364f, but Matlab has a JIT compiler and Octave doesn't, at least for the moment.
(Of course I realize the best is to avoid any iteration and to vectorize the code whenever possible.)
|[Prev in Thread]||Current Thread||[Next in Thread]|