help-octave
[Top][All Lists]
Advanced

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

Re: Performance optimization (allocation inside a for loop)


From: Francesco Potorti`
Subject: Re: Performance optimization (allocation inside a for loop)
Date: Thu, 02 Apr 2009 21:23:35 +0200

>> 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: address@hidden
(entrance 20, 1st floor, room C71)     Web:   http://fly.isti.cnr.it/


reply via email to

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