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

Home » Public Forums » archive » Re: Was: Index... Now: Vectorize, huh?
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: Was: Index... Now: Vectorize, huh? [message #24605] Thu, 05 April 2001 14:49 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Stein Vidar Hagfors Haugan wrote:

> Now, this is a bit unfair! First (but least), you're generating a useless "a =
> fltarr.." for the vector case. Then, you're doing everything in the wrong
> order (exploding the array first, then squaring it), and you're also using
> a transpose when it is not necessary:

Well, if nothing else, this thread can be used as an example of how not
to write programs! I admit, I did not think much when I wrote that
example function, partially because I was really surprised by the
*large* time gap in the results. Not saying that if I did think that
would've changed anything :-(
Oh well. At least we've justified the loops completely now. And pulled
Stein Vidar ouf of hiding, too :-)

Cheers,
Pavel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Header File *.h?
Next Topic: Re: Cant find functions in lib

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

Current Time: Thu Oct 09 20:13:47 PDT 2025

Total time taken to generate the page: 0.31981 seconds