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

Home » Public Forums » archive » Re: findgen([variable])
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: findgen([variable]) [message #22891 is a reply to message #22890] Tue, 12 December 2000 11:33 Go to previous messageGo to previous message
John-David T. Smith is currently offline  John-David T. Smith
Messages: 384
Registered: January 2000
Senior Member
Craig Markwardt wrote:
>
> JD Smith <jdsmith@astro.cornell.edu> writes:
>
>> Craig Markwardt wrote:
>>>
>>> Martin Skou Andersen <skou@fys.ku.dk> writes:
>>>> Is it posible to make an mutiple dimensional array by using a variable
>>>> such as findgen(x)?
>>>
>>> This is virtually impossible, right? You are asking for each row of
>>> the resulting array to be of a different length. That's not really a
>>> 2 dimensional array is it?
>>
>>
>> Are we sure he doesn't just mean:
>>
>> findgen(x[0],x[1]) ?
>
> Ah yes, that would be a good idea. In fact, one of my "top ten"
> requests was to have all of the functions that accept dimensions,
> accept them in a consistent way. REBIN, REFORM and TOTAL are all
> different. We should be able to specify dimensions consistently
> between them, and either as an array, or a list of scalars.

Or as either, as in Perl, where

@a=($a1,$a2);
sub(@a);

sub($a1,$a2)

are the same. A list is a list is a list. This simplifies a lot of
things (and of course requires atomic list members (i.e. pointers),
since you can't have separate lists and scalars all on the command
line).

Not that we could ever get away with that kind of facelift, but PerlDL
of course has hope.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL and external app in concurrent mode
Next Topic: Background colors in PNG files?

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

Current Time: Sat Oct 11 00:00:26 PDT 2025

Total time taken to generate the page: 0.64445 seconds