It depends on what the '*' means in the definition of the product. Have
a look at
a =. i. 2 3 4 5
b =. i. 2 4 3 5 6
$ (2 |: a) +/ . * ((|:~ 1 -.~ i.@(#@$)) b)
2 3 5 2 3 5 6
Henry Rich
On 2/6/2020 2:46 PM, [email protected] wrote:
Dear list,
having two multidimensional matrices A and B,
with some indices, say, A_ijkl and B_mknop,
how can I obtain a matrix C, where
C_ijlmnop = sum_k A_ijkl * B_mknop
ie., C has all indices of A and B but for the index k,
which was summed over.
Thanks for your suggestions.
Best regards
Ruda
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm