# Error while transponsing a tensor [closed]

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}?

-

## closed as off-topic by m_goldberg, rasher, Artes, István Zachar, SilviaMar 28 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, rasher, Artes, István Zachar, Silvia
If this question can be reworded to fit the rules in the help center, please edit the question.

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.