1

I am looking to rotate a 4th dimension array C[i,j,k,l] using a rotation matrix Q[i,j]. I already know how this is done in 3x3 matrices (Q.A.Transpose[Q]) but I am having a hard time doing it for a 3x3x3x3 matrix.

A mathematically correct expression would be

enter image description here

which is basically nested Sums, but I don't know how to code this in Mathematica.

Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263
Meeron
  • 11
  • 1
  • I like the answer by Brent the most. If I needed the best possible performance, I would try the one by WReach. – Szabolcs Apr 21 '17 at 17:22
  • Thanks Szabolcs, I will take a look at that post and come back if I have any questions. – Meeron Apr 21 '17 at 17:48

0 Answers0