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

Home » Public Forums » archive » A more efficient way of multiplying this
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: A more efficient way of multiplying this [message #91584 is a reply to message #91581] Sun, 02 August 2015 19:00 Go to previous message
stefano.rgc is currently offline  stefano.rgc
Messages: 2
Registered: August 2015
Junior Member
Thanks for the quick replies.

@karo03de. What you write is basically the same I wrote: "Currently I do this with a "for loop" (just 3 loops in this example)"


@Nikola Vitas. Thank you for the "# operator" way. It was very instructive.


@Heinz Stege. As you did, I also had figured the way with rebin/reform but I was afraid of how big the "rebin(reform(a,1,3),150,3,/sample)" variable could have been; that because the actual dimensions were 7000 and 5000 instead of 3 and 150 (as you used). But now I realized the amount of memory is only 3 MB so it is such not a big deal. Also thanks for the /sample keyword; I didn't know it.

I will manage it with the rebin/reform way as @Heinz Stege suggested it. But I thought that there was a way to do this without the need of resorting to "copy" something many times, as it does rebin or the line "aa = FINDGEN(100)#(FLTARR(150)+1)" at @Nikola Vitas code.

Thanks again.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Help Doing HDF(-EOS) to Multi-layer GeoTIFF Conversion with IDL
Next Topic: IDL-69024 bug fixed in v8.4?

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

Current Time: Fri Oct 10 20:19:53 PDT 2025

Total time taken to generate the page: 0.56398 seconds