[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Outer product with replicate error

From: Juergen Sauermann
Subject: Re: [Bug-apl] Outer product with replicate error
Date: Tue, 17 May 2016 18:53:13 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Kacper,

yes. APL2 produces what you predicted.

I believe that the standard says little about how / and friends shall be parsed.
In GNU APL a value left of / makes it a function at tokenization time in order to
avoid testing at runtime.

/// Jürgen

On 05/17/2016 06:20 PM, Kacper Gutowski wrote:
On Tue, May 17, 2016 at 4:49 PM, Juergen Sauermann wrote:
is seems like IBM APL2 computes
      1 2 3 /¨ 4 5 6
      (1 2 3/4) (1 2 3/5) (1 2 3/6)
However, the ISO standard says
Z ← A f¨ B

The difference isn't in each operator, but in parsing / always as a monadic
operator (albeit taking a numeric argument) rather than a dyadic function.
I don't have APL2 to test, but I expect (1 2 3/)¨4 5 6 to work too.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]