From help-octave-request at bevo dot che dot wisc dot edu Tue Dec 11 09:12:24 2001 Subject: map() versus apply() From: Douglas Eck To: "help-octave at bevo dot che dot wisc dot edu" Date: Tue, 11 Dec 2001 16:11:27 +0100 In investigating this inplace matrix operation issue I started testing what I thought was the obvious. Namely that map() should be slower than apply() because map first makes a new Matrix and then calls apply().. Very very strangely (at least to my somewhat-dull-from-coding mind) apply() is consistantly though very slightly *slower* for code like this (consider it p-code... not all of it is reproduced.) inline double logc(double x) { return 1/(1+exp(-x));} Matrix mywgts; mywgts=wgts; for (int i=0;i