On Thursday 19 May 2005 12:48, Uri Guttman wrote:
> > "LP" == Luke Palmer <[EMAIL PROTECTED]> writes:
>
> LP> On 5/18/05, Anthony Heading <[EMAIL PROTECTED]> wrote:
> >> Is there a way to target hyperoperators at different axes
> >> of a multi-dimensional array? This is an attractive
>
Uri Guttman wrote:
i can't spit out the syntax but here is the conceptual way i would do
it. we do have multidimensional slices so we could grab each slice
(maybe with zip?) and pass that to [+] and then grab the list of results
back into a array/matrix with one less dimension than the original.
Yu
> "LP" == Luke Palmer <[EMAIL PROTECTED]> writes:
LP> On 5/18/05, Anthony Heading <[EMAIL PROTECTED]> wrote:
>> Is there a way to target hyperoperators at different axes of a
>> multi-dimensional array? This is an attractive feature of
>> various APL-like languages, viz. e.g. in J:
On 5/18/05, Anthony Heading <[EMAIL PROTECTED]> wrote:
> Is there a way to target hyperoperators at different axes of a
> multi-dimensional array? This is an attractive feature of
> various APL-like languages, viz. e.g. in J:
>
> a =. 2 5 $ i. 7 - a simple 2-by-5 array
> a
> 0 1 2 3
Is there a way to target hyperoperators at different axes of a
multi-dimensional array? This is an attractive feature of
various APL-like languages, viz. e.g. in J:
a =. 2 5 $ i. 7 - a simple 2-by-5 array
a
0 1 2 3 4 - like this
5 6 0 1 2
+/"1 a - sum reduc