Performance optimization (allocation inside a for loop)

John W. Eaton jwe at octave.org
Thu Apr 2 12:25:50 CDT 2009


On  2-Apr-2009, Rob Mahurin wrote:

| Any idea why (1:n)(1:n) makes a full matrix more quickly than [1:n]?  
| Just looking at timing, it looks like [] waits for something that () 
| () doesn't.  I would have expected any difference to go the other way.

What do you mean by "more quickly?"

jwe


More information about the Help-octave mailing list