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

Home » Public Forums » archive » Re: How do you get rid of for-loops with arrays
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: How do you get rid of for-loops with arrays [message #19344 is a reply to message #19342] Wed, 08 March 2000 00:00 Go to previous message
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
Karri Kaksonen wrote:
>
> I have tried to understand how to use the arrays in IDL but
> there is still tons of techniques that I don't know...
>
> Is it possible to do this without for-loops?
>
> a = [[1,2,3],[4,5,6]]
> b = [2,2,3]
>
> for i=0,1 do a[*,i] = a[*,i] * b
>
> --
> Thanks,
>
> Karri


a = ( b # replicate(1,2) ) * a

--------
Andrew F. Loughe email:loughe@fsl.noaa.gov phone:(303)497-6211
[Message index]
 
Read Message
Read Message
Previous Topic: Re: more for-loops vs. arrays
Next Topic: Re: How do you get rid of for-loops with arrays #2

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

Current Time: Fri Oct 10 08:11:33 PDT 2025

Total time taken to generate the page: 0.24561 seconds