bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] multiple inner product


From: Kacper Gutowski
Subject: Re: [Bug-apl] multiple inner product
Date: Thu, 7 Jul 2016 04:59:11 +0200

On 6 July 2016 at 20:31, Xiao-Yong Jin wrote:
> I’m not sure which one is at fault here.  Any idea?

The standard explicitly says A f.g B ←→ f/A g B when A & B vectors.

      A←⊂[1]⍳2 3
      B←⊂[1]10×⍳2 3

GNU APL is at fault here:

      {⍺+.+⍵}/A+B
  165 242
      (+.+)/A+B
 209 198

But in the +.(+.+) case, it's Dyalog that gives unexpected results:

      +/A(+.+)B
  33 66  66 66
      A+.(+.+)B
  99 132

-k



reply via email to

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