bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Multiply and add with axis


From: Juergen Sauermann
Subject: Re: [Bug-apl] Multiply and add with axis
Date: Mon, 03 Mar 2014 12:46:43 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi,

thanks, fixed in SVN 150.

/// Jürgen


On 03/02/2014 11:50 AM, Daniel H. Leidisch wrote:
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]