bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] Multiply and add with axis


From: Daniel H. Leidisch
Subject: [Bug-apl] Multiply and add with axis
Date: Sun, 02 Mar 2014 11:50:23 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hello!

Multiply and add doesn't seem to work with axis specifications:

      (3 5⍴1) ×[1] ⍳3
INDEX ERROR
      (3 5⍴1)×[1]⍳3
      ^          ^
INDEX ERROR
      (3 5⍴1)+[1]⍳3
      ^          ^

This works in NARS2000 and Dyalog:

      (3 5⍴1) ×[1] ⍳3
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
      (3 5⍴1)+[1]⍳3
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4

Now, I don't have a copy of the standard to check (the pdf file from the
link mentioned in README-7-more-info seems to be corrupted – I couldn't
open it), but according to the draft (disS8485.pdf), these functions
don't take axis specifications. On the other hand, this works:

      (3 5⍴1) +[2] ⍳5
2 3 4 5 6
2 3 4 5 6
2 3 4 5 6


Regards,

Daniel




reply via email to

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