Dear J Forum:
 
Wishing to generalize matrix multiplication to arrays of higher rank than 2,
I tried the following:
 
mmult =. +/ . *
   A =. i. 2 3 4
   B =. i. 3 4 5
   
   A mmult B  NB. Hopefully a 2-by-5 array
|length error: mmult
|   A     mmult B
 
I'm not even clear what this product means, much less whether with the rank
adverb I could make it work in J.  Can anyone help me with these questions?
 
Sincerely, 

Leigh 
 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to