bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] ,[2]/Matrix returns a syntax error


From: Juergen Sauermann
Subject: Re: [Bug-apl] ,[2]/Matrix returns a syntax error
Date: Thu, 16 Jul 2015 12:38:23 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Alex,

I would say that this is illegal syntax if we look at the ISO standard, but it seems to work in
IBM APL2. I will try to make it work in GNU APL as well. In the meantime you can do this:

      {⍺,[2]⍵}/A A

/// Jürgen

On 07/16/2015 01:58 AM, address@hidden wrote:
Hi Bug APL,

I am willing to admit that my syntax is actually incorrect,and would appreciate any help in that sense, but ,/Matrix works:
      A
1 2 1 2 1
2 1 2 1 2
1 2 1 2 1
2 1 2 1 2
1 2 1 2 1
      A,A
1 2 1 2 1 1 2 1 2 1
2 1 2 1 2 2 1 2 1 2
1 2 1 2 1 1 2 1 2 1
2 1 2 1 2 2 1 2 1 2
1 2 1 2 1 1 2 1 2 1
      A,[2]A
1 2 1 2 1 1 2 1 2 1
2 1 2 1 2 2 1 2 1 2
1 2 1 2 1 1 2 1 2 1
2 1 2 1 2 2 1 2 1 2
1 2 1 2 1 1 2 1 2 1
      ,/ A A
 1 2 1 2 1 1 2 1 2 1 
 2 1 2 1 2 2 1 2 1 2 
 1 2 1 2 1 1 2 1 2 1 
 2 1 2 1 2 2 1 2 1 2 
 1 2 1 2 1 1 2 1 2 1 
      ,[2]/A A
SYNTAX ERROR
      ,[2]/A A
      ^    ^

Even parenthesis don't work:

      (,[2])/A A
SYNTAX ERROR
      (,[2])/A A
      ^      ^
     

-Alex 


reply via email to

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