|
From: | Christian Robert |
Subject: | Re: [Bug-apl] axis specification with scalar dyadic functions (2) |
Date: | Mon, 6 Jun 2016 23:51:39 -0400 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 |
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?
[Prev in Thread] | Current Thread | [Next in Thread] |