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

Home » Public Forums » archive » Re: Help me aviod a FOR loop!?!?
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: Help me aviod a FOR loop!?!? [message #30451 is a reply to message #30438] Tue, 23 April 2002 10:06 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Sean Davis wrote:
>
> 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?

Using matrix multiplication maybe?

paulv

--
Paul van Delst Religious and cultural
CIMSS @ NOAA/NCEP purity is a fundamentalist
Ph: (301)763-8000 x7274 fantasy
Fax:(301)763-8545 V.S.Naipaul
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: signed character
Next Topic: Re: How to make a ribbon plot

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

Current Time: Sun Oct 12 12:35:50 PDT 2025

Total time taken to generate the page: 0.48213 seconds