Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I am trying to execute following:

TensorTranspose[Outer[D, metric, x], {2, 3}]. 

And Mathematica says me

TensorTranspose::symmperm: "Invalid permutation or symmetry generator {2,3}.

While for permutation {1,2} there would not be an error. metric has dimentions {5,5}, x has {5}. Could anyone tell what is wrong with {2,3}?

share|improve this question

closed as off-topic by m_goldberg, ciao, Artes, István Zachar, Silvia Mar 28 '14 at 0:59

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – m_goldberg, ciao, Artes, István Zachar, Silvia
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

A tensor with dimensions {5, 5} has only 2 levels. You cannot swap levels 2 and 3. Further {2, 3} is not a permutation of the levels. If a = Array[b, {2, 2, 2}], then TensorTranspose[a, {1, 3, 2}] will swap levels 2 and 3, if that is what is desired.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.