[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cellfun/arrayfun vs iteration

From: Daniel Arteaga
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: Gecko/20110223 Thunderbird/3.1.8


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, 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.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]