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

Home » Public Forums » archive » Re: Using two different arrays in tha same calculation
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: Using two different arrays in tha same calculation [message #2320 is a reply to message #2243] Thu, 09 June 1994 06:20 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
ragnar@kvark.fi.uib.no (Ragnar Aas) writes:

> I have the following problem :

> I have two different arrays, (8) of float and (300,8) of float.
> I want to vectorize the equation and therefore I need to use both
> arrays in the same equation. For example :

> newarray=cos(small_array)*sin(large_array)

> where I want the data in small_array to be used over and over 300 times
> in this calculation.

That's simple,

newarray = cos(replicate(1,300)#small_array) * sin(large_array)

Bill Thompson

P.S. Another one for the FAQ?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Does PVWAVE V4.2 work with Motif V1.2 under VMS?
Next Topic: Re: Problems with Idl and Irix 5.2-alpha

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

Current Time: Wed Dec 03 00:40:15 PST 2025

Total time taken to generate the page: 0.64008 seconds