help-octave
[Top][All Lists]
Advanced

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

Re: HELP with octave-to-cpp conversion


From: CdeMills
Subject: Re: HELP with octave-to-cpp conversion
Date: Wed, 23 Feb 2011 03:27:48 -0800 (PST)


grg wrote:
> 
> Hi there,
> 
> I have been working for a while on a very computationally demanding
> optimization using octave.
> I have optimized my code as much as possible (I think), minimizing the use
> of for loops, defining vectors outside loops, etc.
> 
> 

I found myself in a similar case a few month ago. Something which can really
help is to rewrite your computing intensive code in terms of the function
'filter'. For instance, a very simple 'trapz' is
filter([.5 .5], 1, x)

provided you scale the [.5 .5] by your step width.

Regards

Pascal
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/HELP-with-octave-to-cpp-conversion-tp3320720p3320836.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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