[net.lang.apl] More APL extensions

vifl@hou2f.UUCP (M.MEKETON) (05/01/84)

Adding extensions to APL is always a fun topic.  One extension I wish APL
had was to extend dyadic operators to work with matrices in one argument
and vectors in another argument:

      A #is 1 2 3
      B #is 3 4 #reshape 10 11 12 13 14 15 16 17 18 19 20 21
      B
10 11 12 13
14 15 16 17
18 19 20 21
      A + B
11 12 13 14
16 17 18 19
21 22 23 24

I often need this type of operation, and instead have to use

      (#transpose (#rotate #shape B) #reshape A) + B

which is a waste...

Notice, I used STSC's APL/PLUS keyword form (what I remember of the
keyword form) to substitute for the APL characters.  Someone recommended
to me that we can place APL programs on the net using keywords, and it
seems like a good idea.


Marc S. Meketon
hou2f!vifl