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: alexweiner
Subject: Re: [Bug-apl] ,[2]/Matrix returns a syntax error
Date: Thu, 16 Jul 2015 10:37:50 -0700
User-agent: MailAPI

Juergen, thank you for the workaround. it appears that Dyalog APL also supports 
,[2]/A A

-------- Original Message --------
Subject: Re: [Bug-apl] ,[2]/Matrix returns a syntax error
From: Juergen Sauermann <address@hidden>
Date: Jul 16, 2015 6:38 AM
To: address@hidden,address@hidden
CC: 

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]