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

Home » Public Forums » archive » simple array math question
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: simple array math question [message #33789 is a reply to message #33713] Mon, 27 January 2003 10:00 Go to previous messageGo to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Sun, 26 Jan 2003 13:11:31 -0700, Craig Markwardt wrote:


> Heinz Stege <reply_to_posting@arcor.de> writes:
>>
>> Thanks a lot for this very instructive contribution! Since the
>> proposal of the intarr() method was from me, the NG may allow me to
>> state this here.
>>
>> REBIN(REFORM(...)) is the better alternative. This is obvious now.
>
> "Better" can be defined in a lot of ways. Your solution is by far the
> most readable way, in my view, to extend arrays. And it's cool because
> nobody seems to have discovered it before!
>
> Speed is only king when you need a king.


Well put. Ideally, IDL would have an intrinsic, readable, "inflate"
operator to do what we're all doing in roundabout, quasi-readable ways
right now. Maybe something like:

IDL> a=findgen(10,12,14)
IDL> g=a[3;7]*randomu(sd,10,12,7,14)

I.e. replicate 7 times over the third dimension.

You might even be able to make it general enough to combine with the
other indexing operators.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Polyfill, z-buffer & postscript
Next Topic: True size of a gzip compressed file?

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

Current Time: Wed Oct 08 13:07:03 PDT 2025

Total time taken to generate the page: 0.00483 seconds