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

Home » Public Forums » archive » array subscripting problem
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: array subscripting [message #69145 is a reply to message #43426] Fri, 11 December 2009 08:43 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dave Higgins writes:

> Thanks for your reply. Sorry I wasn't clear in my post. I was
> wondering if there's a better way, in terms of memory management. I.e.
> not creating a second huge array (phi after the rebin), when the
> useful information is a 1d vector.

The IDL Way often involves trade-offs between speed and
memory. A judicious use of a FOR loop might be called
for here, if memory usage is getting ridiculous. But
I would think about transposing your array so that if
you do settle on a loop solution your multiplications
occur on rows of data and not columns of data. Looping
on columns is sure to be slow, slow, slow.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: renaming a variable without making a copy
Next Topic: learn CPP with in 2 weeks

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

Current Time: Fri Oct 10 04:48:37 PDT 2025

Total time taken to generate the page: 0.87800 seconds