How do I perform the following summation in mathematica? \begin{equation} \Sigma_{m=1}^5 e_{ijklm}A^{mn} \end{equation} I have the $e_{ijklm}$ tensor of rank 5 in 5 dimension as a array and $A^{mn}$ as a 5x5 matrix.
Tell me more
×
Mathematica Stack Exchange is a question and answer site for
users of Mathematica. It's 100% free, no registration required.
|
Since the sum goes over the last index of $e$ and the first index of $A$, it is directly done by using
Here I defined the arrays with the appropriate dimensions but suppressed the output because it's too long for five dimensions. Another interesting alternative for more general sums is what I mentioned in this answer, but it requires version 9:
Here the |
||||
|
|
