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

Home » Public Forums » archive » Re: fast convolving 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: fast convolving question [message #60625 is a reply to message #60624] Fri, 30 May 2008 00:44 Go to previous messageGo to previous message
rogass is currently offline  rogass
Messages: 200
Registered: April 2008
Senior Member
On May 29, 9:47 pm, Chris <cnb4s...@gmail.com> wrote:
>> But, did you see the error, why:
>
>> else (conv)[(i=indarray2[0:sm-1])]=kernel##mat( indsmall+ind(i) )
>
>> only works for the first ind(i=0) and then repeats it by using always
>> ind(0) instead of ind(i)?
>
>> It this a bug or error in code?
>
> Both kernel and mat(indsmall+ind(i)) are vectors of length sm. When
> you matrix multiply them, the answer is single number. So you are just
> asking to fill in conv with the same number at every element given by
> i.

Ah, ok - THANKS. But how can I fix this?

If I would:

(conv)[(i=0)]=kernel##mat( indsmall+ind(i) ) ->result right
(conv)[(i=1)]=kernel##mat( indsmall+ind(i) ) ->result right
and so on..

But if I would:

(conv)[(i=indarray2[0:sm-1])]=kernel##mat( indsmall+ind(i) )

or

(conv)[(i=indgen(sm))])]=kernel##mat( indsmall+ind(i) )

then it does what you said. That makes no sense to me. How can I do it
parallel for all indices given by i?

If the code would work, its 100 times faster than fft - and that is
the aim.

Please help again.

Thanks and best regards

Christian
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Group specification of format codes on data of varying dimensions
Next Topic: how create XML file by IDL ?

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

Current Time: Thu Oct 09 23:07:47 PDT 2025

Total time taken to generate the page: 0.16186 seconds