comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Optimization Question: Sum at each element of array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Optimization Question: Sum at each element of array [message #75102 is a reply to message #75100] Tue, 15 February 2011 05:09 Go to previous message
Brian Daniel is currently offline  Brian Daniel
Messages: 80
Registered: July 2009
Member
You're using the for loop to count over regression iterations.
Without knowing more about myfunc(), it's not clear to me that you'll
be able to do this with only array operations.

Regards,
Brian

On Feb 15, 12:58 am, Charles Steinhardt <charles.steinha...@ipmu.jp>
wrote:
> Hello,
>
> I'm trying to optimize the following:
>
>   for i=0, 100 do begin
>      y = y + myfunc(x, x + sigma * (i-50)/10.0, P[2]*myfunc2(x + sigma
> * (i-50)/10.0), sigma)
>   endfor
>
>
>
> -Charles
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Nonlinear Diffusion Image Filtering Package
Next Topic: Re: possible bug with center keyword option for FFT

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:55:17 PDT 2025

Total time taken to generate the page: 0.00439 seconds