Article View: net.lang.apl
Article #85More APL extensions
From: M.MEKETON
Date: Tue, 01 May 1984 15:39
Date: Tue, 01 May 1984 15:39
29 lines
1277 bytes
1277 bytes
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
Technical Details
Message-ID:
<207@hou2f.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!hou2f!viflShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83 based; site hou2f.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!hou2f!vifl From: vifl@hou2f.UUCP (M.MEKETON) Newsgroups: net.lang.apl Subject: More APL extensions Message-ID: <207@hou2f.UUCP> Date: Tue, 1-May-84 11:39:25 EDT Article-I.D.: hou2f.207 Posted: Tue May 1 11:39:25 1984 Date-Received: Wed, 2-May-84 04:43:35 EDT Organization: AT&T Bell Labs, Holmdel NJ Lines: 29