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

Home » Public Forums » archive » Re: quickly reassign numbers in large array?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: quickly reassign numbers in large array? [message #50101] Wed, 13 September 2006 16:52 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
vlk.astro@gmail.com writes:

> There has to be a faster, if not cleverer, way to do this reassignment.
> Those multiple where()'s and the for-loop are fine for readability,
> but are a major drain on the cpu and user patience when you have large
> images and thousands of segments.

You're teasing us, right? All those discrete integers,
regularly spaced. What do YOU think the answer is going
to be? :-)

Cheers,

David

P.S. Here's some light reading for when you take a break
from all that deep thinking tonight:

http://www.dfanning.com/tips/histogram_tutorial.html

--
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.")
Re: quickly reassign numbers in large array? [message #50178 is a reply to message #50101] Thu, 14 September 2006 13:49 Go to previous message
vlk.astro is currently offline  vlk.astro
Messages: 11
Registered: March 2006
Junior Member
Reverse indices! Of course!

thanks much,
Vinay

David Fanning wrote:
> vlk.astro@gmail.com writes:
>
>> There has to be a faster, if not cleverer, way to do this reassignment.
>> Those multiple where()'s and the for-loop are fine for readability,
>> but are a major drain on the cpu and user patience when you have large
>> images and thousands of segments.
>
> You're teasing us, right? All those discrete integers,
> regularly spaced. What do YOU think the answer is going
> to be? :-)
>
> Cheers,
>
> David
>
> P.S. Here's some light reading for when you take a break
> from all that deep thinking tonight:
>
> http://www.dfanning.com/tips/histogram_tutorial.html
>
> --
> 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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Uploading DICOM data on PACS
Next Topic: looking for procedure call graph utilty

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

Current Time: Wed Oct 08 15:55:30 PDT 2025

Total time taken to generate the page: 0.00470 seconds