Performance optimization (allocation inside a for loop)

Francesco Potorti` Potorti at isti.cnr.it
Thu Apr 2 14:23:35 CDT 2009


>> In Octave 3.2, some operations on ranges will preserve the range data
>> type.  In earlier versions, nearly all operations converted range
>> objects to matrix objects first.
>
>adding/subtracting/multiplying by a scalar, to be precise. and unary
>minus. This is useful for indexing. Is anyone interested in adding /
>subtracting two ranges?

I think not.  It would only make sense with ranges having the same
number of elements, and as far as I can tell, it is easy to just create
the range you need rather than summing up two of them.  Or I just do not
have enough imagination :)

-- 
Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: Potorti at isti.cnr.it
(entrance 20, 1st floor, room C71)     Web:   http://fly.isti.cnr.it/


More information about the Help-octave mailing list