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

Home » Public Forums » archive » Re: REPLICATE question
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: REPLICATE question [message #7233 is a reply to message #7232] Tue, 15 October 1996 00:00 Go to previous message
dan is currently offline  dan
Messages: 27
Registered: March 1993
Junior Member
In article <32636705.41C6@jmc-luni.u-bordeaux2.fr>, Mario Noyon <mnoyon@jmc-luni.u-bordeaux2.fr> writes:
|> I would like to divide an arr1(n,n,m) by an arr2(n,n) and be able to
|> obtain an array(n,n,m). I suppose there is a way to avoid the for
|> statements.
|> I had the idea to transform my arr2(n,n) in an arr2(n,n,m) where the
|> m-elements are all the same but REPLICATE does not work with the arrays.
|>
|> Does some-one have an idea that could help me?
|>
|> Thanks.
|>
|> --
|> NOYON Mario
|> Computer Science in Medical imaging
|> University of Bordeaux 2
|> mnoyon@jmc-luni.u-bordeaux2.fr

I would try two ways and see which is faster

for i=0,m-1 do array(*,*,i) = arr1(*,*,i) / arr2(*,*)

array = arr1 / rebin(reform(arr2,n,n,1),n,n,m)
--
************************************************************ ***
** Dan Bergmann dbergmann@llnl.gov **
** Atmospheric Science Division fax (510) 422-5844 **
** Lawrence Livermore National Lab human (510) 423-6765 **
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: VIEWPORT_EVENTS
Next Topic: Re: Looking for: IDL-widget routine for spectrosc. Data (Raman/IR)

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

Current Time: Sat Oct 11 15:22:23 PDT 2025

Total time taken to generate the page: 0.96334 seconds