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

Home » Public Forums » archive » vectorising versus loops
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: vectorising versus loops [message #38441 is a reply to message #38146] Sun, 07 March 2004 09:24 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
nasalmon@onetel.net.uk (Neil) writes:
...
>
> However, there is one small outstanding problem in the vectorisation,
> and this involves vectorisation of a routine that uses the cross or
> vector product, the IDL routine being CROSSP, generating a vector from
> the cross product of two vectors.
>
> Currently i am forced to use this in a loop, as my vectorising
> attempts (see below) have failed. The loop statement below gives the
> correct result (i being the counter of one of the outer loops):
...

Neil, how about using CROSSPN, a vectorized cross product function for
just such purposes?

Craig

P.S. http://cow.physics.wisc.edu/~craigm/idl/idl.html (under Math)

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: resizing image
Next Topic: IDL jobs anyone?

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

Current Time: Sat Oct 11 22:09:10 PDT 2025

Total time taken to generate the page: 0.71532 seconds