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

Home » Public Forums » archive » Re: Efficient IDL programming (use outer product)
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: Efficient IDL programming (use outer product) [message #1593] Tue, 07 December 1993 07:11
ryba is currently offline  ryba
Messages: 33
Registered: October 1992
Member
In article <thompson.755218658@serts.gsfc.nasa.gov>, thompson@serts.gsfc.nasa.gov (William Thompson) writes:
|> chase@aphill.jhuapl.edu (Chris Chase S1A) writes:
|> >IDL Comments/musing/wishful thinking:
|> >2) reduction - apply a scalar valued function along one dimension of
|> > an array (works like TOTAL function when using the dimension
|> > parameter). For example, return the maximum of each row of a
|> > matrix.
|> It seems to me that item 2 above could be best accomplished by taking the
|> DIMENSION keyword recently added to TOTAL, and extending it to the MAX
|> and MIN functions. I, for one, think that would be useful.
|> Bill Thompson

Hear, hear. One of the few times I'm still forced to use FOR loops is
in peak finding - finding the maximum of each array in arrays of structures
containing arrays.

--
Dr. Marty Ryba | Generation X:
MIT Lincoln Laboratory | Too young to be cynical,
ryba@ll.mit.edu | too old to be optimistic.
Of course nothing I say here is official policy, and Laboratory affiliation is
for identification purposes only, blah, blah, blah....
Re: Efficient IDL programming (use outer product) [message #1594 is a reply to message #1593] Mon, 06 December 1993 14:57 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
chase@aphill.jhuapl.edu (Chris Chase S1A) writes:

> IDL Comments/musing/wishful thinking:

> I would like to see two `APL'-like operators in IDL for dealing with
> vectors and matrices:
> 1) outer products - using a given binary operator.
> 2) reduction - apply a scalar valued function along one dimension of
> an array (works like TOTAL function when using the dimension
> parameter). For example, return the maximum of each row of a
> maxtrix.

It seems to me that item 2 above could be best accomplished by taking the
DIMENSION keyword recently added to TOTAL, and extending it to the MAX and MIN
functions. I, for one, think that would be useful.

Bill Thompson
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problems with dual draw widgets
Next Topic: Cursor-editing techniques/tools?

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

Current Time: Wed Oct 08 15:47:54 PDT 2025

Total time taken to generate the page: 0.00575 seconds