I am playing around with GNU APL, but my experiments quickly reached an impasse. This is what happened:
x←1 2 3 4 5
⍝ build the matrix u where u_{ij} = x_i + x_j,
⍝ then filter the entries equal to 6
u←6=x∘.+x
So far so good, u
is a flipped identity matrix, as expected.
Now, I would like to get the indices of the nonzero entries, so I try
⍸u
but here I get a SYNTAX ERROR++
warning.
The same error appears when entering any of the following commands:
{⍸6=⍵∘.+⍵}x
{⍸6=⍵∘.+⍵} 1 2 3 4 5
{⍸6=⍵∘.+⍵} ⍳5
app←{⍸6=⍵∘.+⍵}
I suspect this is somehow a problem on my local installation, as I cannot reproduce the errors on the online interpreter.
Did somebody see this problem before? I compiled APL from source (ubuntu, GCC), the error appears in both versions 1.7 and 1.8. I could reproduce the error with the precompiled binary available from GNU's mirror. I wonder if I made a mistake in compiling and installing GNU APL, but the only non-standard thing I did was to unset the flag WERROR from the Makefile in the src folder, otherwise it would not compile due to an unchecked return value in the source.