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 (2)


From: Juergen Sauermann
Subject: Re: [Bug-apl] axis specification with scalar dyadic functions (2)
Date: Tue, 07 Jun 2016 16:16:44 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi,

thanks, fixed in SVN 737.

/// Jürgen


On 06/07/2016 05:51 AM, Christian Robert wrote:
NARS2000 give:

     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
LENGTH ERROR
     a+[1]b
      ∧
     a+[2]b
LENGTH ERROR
     a+[2]b
      ∧

looks like something *I* do not yet master. Ah the newbies ... they talk, talk and it's just wind.

Xtian.

On 2016-06-06 23:35, Christian Robert wrote:
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]