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

Home » Public Forums » archive » Help me aviod a FOR loop!?!?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Help me aviod a FOR loop!?!? [message #30455] Tue, 23 April 2002 09:10
Sdavis is currently offline  Sdavis
Messages: 12
Registered: July 1998
Junior Member
I don't know if this is possible. I have 4 coeffecients,
a,c,d,cd, that are each 3191-long arrays, and I would like to construct
3191, waveforms (of length 128) from these coefeccients.

Here's what I'm trying to do:

x = FINDGEN(128)
yfit = FLTARR(128,3191)

yfit = (a/cd)*( exp(-1.*c*x)-exp(-1.*d*x) )

In the end, I would like yfit to be an array of (128,3191) or (3191,128).

I can't figure out how to do this without using a FOR loop. Is there any
hope for doing this without a FOR loop?

THANKS!!!!!!

Sean

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< ><><><><>
Sean M. Davis
___ o __ __ sdavis@nis.lanl.gov
|\/ o\ o ,,,, ) `-'. \ NIS-1
|/\___/ (::::[||||||||||||||#==#[| Los Alamos National Laboratory
'' ).-.__/ 505-667-8784
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< ><><><><>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Bizarre slowness from sort()
Next Topic: Re: Color Fonts?!?!?

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

Current Time: Wed Oct 08 15:53:02 PDT 2025

Total time taken to generate the page: 0.00486 seconds