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

Home » Public Forums » archive » subscript array 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: subscript array question [message #14376 is a reply to message #14309] Tue, 16 February 1999 00:00 Go to previous message
Thomas A. McGlynn is currently offline  Thomas A. McGlynn
Messages: 23
Registered: March 1996
Junior Member
This kind of thing comes up in a number of contexts, e.g., the
thread a couple of months ago for calculating cumulative totals
in arrays. The solution I've suggested to RSI is a new equality
operator (e.g., :=) which does not implicitly parallelize
array operations.

In this case one could just write

array[subs] := array[subs]+1

in a very natural way rather than use devious if clever subterfuges.

This simple syntax can solve a variety of problems rather cleanly. E.g.,
the cumulative total looks something like:

cum[1:n-1] := cum[0:n-2] + cum[1:n-1]


Although the loops would not be parallelized, they could still be
compiled into very efficient code (since temporaries would be less
necessary perhaps faster in some cases than the parallel versions).

Haven't heard anything back alas...

Tom McGlynn
tam@silk.gsfc.nasa.gov
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Non-Blocking I/O
Next Topic: How do I prevent underflow errors?

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

Current Time: Fri Oct 10 14:03:16 PDT 2025

Total time taken to generate the page: 0.87756 seconds