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 4               - like this
> 5 6 0 1 2
> 
> 
>     +/"1 a              - sum reduce over axis 1
> 10 14

    [+]<< @a

>     +/"2 a              - sum reduce over axis 2
> 5 7 2 4 6

Can't think of any for this one.  Or maybe it's this one that I can
think of it for, and the other one which I can't.

I think we're beginning to re-invent PDL.  Poorly.

Luke

Reply via email to