On Mon, Feb 22, 2010 at 10:03 AM, Leigh J. Halliwell <[email protected]> wrote: > 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
Try (i.2 3 4) +/ .* i.4 5 6 Why would you expect a rank 2 array when multiplying arrays of higher rank? -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
