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

Home » Public Forums » archive » Specification for a new array slicing function
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: Specification for a new array slicing function [message #15565 is a reply to message #15437] Thu, 20 May 1999 00:00 Go to previous messageGo to previous message
Jack Saba is currently offline  Jack Saba
Messages: 30
Registered: January 1996
Member
> Stein Vidar Hagfors Haugan wrote:

>> My suggestion would be something a bit more like the native
>> Fortran 9X syntax (not that I actually *know* exactly how that
>> syntax works!) , e.g.:
>> a(0:5:2,:,5:9) would be translated into
>> arex(a,[0,5,2],-1,[5,9])


The Fortran standard is [Start]:[End][:Stride]. ":" without
preceding or following numbers means all elements; any or
all of Start, End, or :Stride can be left off and would default
to first element, last element, :1, respectively.

I don't see why a new function, whatever it's called, should
be needed to handle this. It looks (from the user perspective)
like a simple extension of the current IDL syntax for array
sectioning. And, again from at least this user's perspective,
Sect=a[0:5:2,:,5:9] is preferable to Sect=AS(a,[0,5,2],-1,[5,9]),
which is nowhere near as easy to remember or obvious-looking.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Still IDL's Table Widget
Next Topic: Skipping a line while reading a file.

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

Current Time: Wed Oct 08 19:39:33 PDT 2025

Total time taken to generate the page: 0.00425 seconds