bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] axis specification with scalar dyadic functions


From: Christian Robert
Subject: Re: [Bug-apl] axis specification with scalar dyadic functions
Date: Mon, 6 Jun 2016 23:35:53 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1

I agree,


      )sic
      a←2 3⍴.1×⍳6
      b←2 3⍴⍳6
      a + b
1.1 2.2 3.3
4.4 5.5 6.6
      a+[1]b
1.1 1.2 1.3
4.4 4.5 4.6
      ⍝ should give an error above, rank error.


      a+[2]b
LENGTH ERROR
      a+[2]b
      ^    ^
      ⍝ this is NOT ok

      ⎕io
1

my 2 cents,

Xtian.

On 2016-06-06 23:14, Xiao-Yong Jin wrote:
Hi,

I accidentally found this in gnu apl:

      (2 3⍴.1×⍳6)+[1]2 3⍴⍳6
1.1 1.2 1.3
4.4 4.5 4.6

I would expect a rank error.  Bug or feature?




reply via email to

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