Re: hyperoperators and multi-dimensional datastructures

2005-05-20 Thread Edward Cherlin
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 >

Re: hyperoperators and multi-dimensional datastructures

2005-05-20 Thread Anthony Heading
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

Re: hyperoperators and multi-dimensional datastructures

2005-05-19 Thread Uri Guttman
> "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:

Re: hyperoperators and multi-dimensional datastructures

2005-05-19 Thread Luke Palmer
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

hyperoperators and multi-dimensional datastructures

2005-05-19 Thread Anthony Heading
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