Message: 6
Date: Sun, 29 Apr 2007 10:23:27 +0000 (GMT)
From: NEIL JAMES HOSEY <[EMAIL PROTECTED]>
Subject: RE: [Jprogramming] Matrix Multiplication Problem
To: Programming forum <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Thank you very much!
Use the rank conjuction.
[dat=: 4 2$ 0 1 1 0 0 0 1 1
0 1
1 0
0 0
1 1
3 2 *"1 dat
0 2
3 0
0 0
3 2
It'll obviously work the other way around, too, but you need to parenthesize
if the nouns are not named.
That is,
dat *"1 (3 2)
but if dat2 =. 3 2
then dat *"1 dat2 works just fine.
AHS
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm