Re: Efficient IDL programming (use outer product) [message #1593] |
Tue, 07 December 1993 07:11 |
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  |
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
|
|
|