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

Home » Public Forums » archive » Re: Multi-dimensions without for loop ?
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: Multi-dimensions without for loop ? [message #38817 is a reply to message #38739] Fri, 26 March 2004 15:36 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Fri, 26 Mar 2004 16:01:07 +0100, Emmanuel Christophe wrote:

> ok, I guess my example using 'mean' was not well choosen. I understand
> how to make it using 'total' now and it's working because this is a sum.
>
> But in this case:
>
> Let define a simple array (dimension 2x2 to explain, but i'd like to
> make it work on bigger array):
> |a00 a10|
> |a01 a11|
>
> Is it possible to get in one step without using 'for' loops
>
> dimension (1x2)
>
> | a00.a10 |
> | a01.a11 |

p=product(a,1)

> or
>
> | max([a00,a10]) |
> | max([a01,a11]) |
>

m=max(a,DIMENSION=1)

A pleasingly IDL-esque lack of symmetry there. Probably requires
IDL>5.6.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: not only google
Next Topic: Image structure

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

Current Time: Sun Nov 30 20:17:00 PST 2025

Total time taken to generate the page: 1.67453 seconds