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

Home » Public Forums » archive » How to write a function that can be apply to arbitrary dimension of multiple array!
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: How to write a function that can be apply to arbitrary dimension of multiple array! [message #86247 is a reply to message #86235] Mon, 21 October 2013 07:10 Go to previous message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
On 20/10/13 05:21, Dave wrote:
> Hi, guys: I want to write a function which can be apply to specified
> dimension of multiple array, like "mean function which has DIMENSION=
> parameters. So, any suggestions!

You ask a very general question, so the answer also is very general. I have on
occasion used TRANSPOSE() with the permutation vector P specified so that the
special dimension was made the first dimension. Then your function can be
written to always do its work on the first dimension, after which you
transpose back.

chl
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: how to undo 80-column line width maximum in read_ascii?
Next Topic: How to write a function that can be apply to arbitrary dimension of multiple array!

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

Current Time: Wed Oct 08 15:27:59 PDT 2025

Total time taken to generate the page: 0.00926 seconds