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

Home » Public Forums » archive » Re: Accelerating a one-line program doing matrix multiplication
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: Accelerating a one-line program doing matrix multiplication [message #72682 is a reply to message #72681] Mon, 27 September 2010 23:17 Go to previous messageGo to previous message
Axel Martínez is currently offline  Axel Martínez
Messages: 22
Registered: June 2010
Junior Member
On 27 Sep., 15:31, nata <bernat.puigdomen...@gmail.com> wrote:
> You can use the TEMPORARY function if you can set the input to
> undefined...
> When you do [[v1],[v2],[v3]] you are duplicating data. v1, v2 and v3
> are copied and you are not conserving memory.
>
> You could try:
> RETURN, [[TEMPORARY(v1)],[TEMPORARY(v2)],[TEMPORARY(v3)]] # vc +
> REBIN(v0, SIZE(vc, /DIMENSIONS))
>
> Cheers,
> nata

Thanks nata.

v0, v1, v2 and v3 are each of them 3-element vectors. I can add that
but, as I understand it, it will only save the place of 12 floating
values in memory (48 bytes?).

But I am happy that you did not see any other obvious thing. I started
feeling depressed seeing that I am not being able to improve this
single line of code... maybe it is ok, and the whole thing is just
slow...? ahh.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Coyote Facts
Next Topic: ENVI and IDL ROIs: Do they play nice?

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

Current Time: Sat Oct 11 16:03:37 PDT 2025

Total time taken to generate the page: 1.52632 seconds