|
Hi Rowan, not sure if it helps, but the term accumulator makes me think of the reduction operator rather than the rank operator: {⍺,1+⍵} / 1 2 3 1 3 5 Not sure, though what you want to compute. The syntax of the rank operator in the ISO standard is IMHO broken. The syntax: Z←f ⍤ y B has a rather ambiguous right argument j B with no rules as to where j end and B begins. For example: Z←f⍤1 2 3 4 5 could mean: j = 1 and B = 2 3 4 5 or: j = 1 2 and B = 3 4 5 or even: j = 1 2 3 and B = 4 5 GNU APL uses some crude rules to resolve such cases, but in order to get a predictable result, you need to properly use parentheses like this: Z←(f⍤1) 2 3 4 5 or, as a cleaner though non-standard alternative syntax, make j an axis argument: Z←f⍤[1] 2 3 4 5 It is very difficult to get all that right, therefore I never use ⍤. Best Regards, Jürgen Sauermann On 10/9/19 9:44 PM, Rowan Cannaday
wrote:
|
- [Bug-apl] Tree Traversal in gnu-apl Rowan Cannaday
- Re: [Bug-apl] Tree Traversal in gnu-apl Rowan Cannaday
- Re: [Bug-apl] Tree Traversal in gnu-apl Rowan Cannaday
- Re: [Bug-apl] Tree Traversal in gnu-ap... Rowan Cannaday
- Re: [Bug-apl] Tree Traversal in gn... Rowan Cannaday
- Re: [Bug-apl] Tree Traversal ... Rowan Cannaday
- Re: [Bug-apl] Tree Traver... Rowan Cannaday
- Re: [Bug-apl] Tree Tr... Dr . Jürgen Sauermann
- Re: [Bug-apl] Tree Tr... Rowan Cannaday
- Re: [Bug-apl] Tree Tr... Rowan Cannaday
- Re: [Bug-apl] Tree Tr... Rowan Cannaday
