bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] take and drop on matrixes?


From: Juergen Sauermann
Subject: Re: [Bug-apl] take and drop on matrixes?
Date: Sat, 29 Aug 2015 22:23:29 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Alexey,

I believe you are using a Dyalog-specific feature.

Try 
2 2↑XG1 instead.

/// Jürgen


On 08/29/2015 06:56 PM, Alexey Veretennikov wrote:
Hi list

The following code with given matrix XG1 produces an error in GNU APL on attempt to take or drop rows:

      XG1
1 9 5 3 6
5 4 8 2 3
7 7 6 2 6
      ⍴XG1
3 5
      2↑XG1
RANK ERROR
      2↑XG1
      ^ ^
      2↓XG1
RANK ERROR
      2↓XG1
      ^ ^

However this works fine on Dyalog APL:
      2↑XG1
1 9 5 3 6
5 4 8 2 3

Is where some incompatibilities with a standard?

Br,
/Alexey



reply via email to

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