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

Home » Public Forums » archive » Re: Matrix expansion performance
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: Matrix expansion performance [message #43248] Wed, 30 March 2005 00:22 Go to previous message
Timm Weitkamp is currently offline  Timm Weitkamp
Messages: 66
Registered: August 2002
Member
On 29.03.05 at 10:55 +0100, Ricardo Bugalho wrote:

> I think I didn't make clear the ranges of m,n and p.
> In the problem I have at hand, m is always 8, n is usually 5 (min 1, max 16)
> and p is in the range of 10,000 to 100,000.
> Looping over p is a BadThing(tm) due to IDL's high interpretation overhead.

The method that Chris Lee suggested does not use loops. But I think there
is no need for any call to REFORM. And the dimension arguments to REBIN
must be scalars in IDL 5.4. A simple

b = rebin(a, m, n, p, /sample)

should therefore work (and, hopefully, be fast enough for your purposes).

Timm

--
Timm Weitkamp <http://people.web.psi.ch/weitkamp>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Line-Mouse widget tool
Next Topic: IDLWAVE Manuals: Your Support Needed

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

Current Time: Thu Oct 09 21:54:59 PDT 2025

Total time taken to generate the page: 1.20106 seconds