Rearrange


Function Rearrange within
Table with keys Table Rearrange keysreturns another Table object produced by the original one by reordering and merging the specified axes.
The axes and the exact type of operation (reordering, merging or both) are specified by a specially formatted text that must be passed as input to the key
New_Axes
The result of this function can be also achieved by calling the function
Permute followed by the function Merge Dims

For example, consider a table A with 7 axes denoted as A₁ A₂ A₃ A₄ A₅ A₆ A₇ that are assumed to be ordered in the indicated sequence.
Assume a permutation whereby the two axes A₂ A₃ are interchanged and the three axes A₅ A₆ A₇ are cycled in the sense A₅ A₆ A₇ → A₆ A₇ A₅
Assume that following two reordering-merging operations apply:
The first operation applies on the axes A₂ A₃ and produces a new axis equalling the
cross product A₃×A₂.
This operation is effectively a reordering of the axes A₂ A₃ followed by their merging into their
cross product.
The second operation applies on the axes A₅ A₆ A₇ and produces a new axis equalling the
cross product A₆×A₇×A₅.
This operation is effectively a cycling reordering of the axes A₅ A₆ A₇ followed by their merging into their
cross product.
Then the result will be a table B with 4 axes B₁ B₂ B₃ B₄ defined as:
(B₁ B₂ B₃ B₄) = (A₁ A₃×A₂ A₄ A₆×A₇×A₅)