I am porting Python code to C++ and I encountered this problem:
in Python to transpose a tensor of shape (5, 3, 10) into shape (10, 5, 3) I can use following function:
np.transpose(tensor, (2, 0, 1))
How can I do same operation in C++ either using standard library or any linear algebra library (like Eigen)