|
|
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  |
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
|
|
|