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

Home » Public Forums » archive » Re: Code optimization
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: Code optimization [message #75208 is a reply to message #75116] Thu, 17 February 2011 12:09 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Feb 17, 2:42 pm, kisCA <ki...@hotmail.com> wrote:
> Jeremy and Fabzou, thanks for these details I think I got it now, I
> will read about compile_opt IDL2...
>
> Jeremy, I am amazed how you manage so quickly to find a way to
> optimize the code. Do you have some tips to achieve it?

Well technically Jeremy's solution is slightly suboptimal in that
it computes a matrix multiplication for 2 arrays, but only uses the
diagonal elements of the results.
If performance matters to you you may want to avoid doing that
2nd matrix multiplication and just compute the result directly
as I suggested.

Ciao,
Paolo



>
> Cheers
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Resizeable Graphics Windows for Traditional Commands
Next Topic: make strsplit not skip null between patterns

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

Current Time: Fri Oct 10 10:20:46 PDT 2025

Total time taken to generate the page: 2.08377 seconds