Reorder an array
array_reorder(x, dims, reorder_dim, new_order, item_size)
The re-ordered array
The array; doesn't have to have a dim attribute; is just assumed to be a vector
The dimensionality of the array
The dimension to reorder
The new ordering of the reorder_dim; not checked for correctness; 1-based
The size in bytes of each array item; not discovered automatically
Holger Hoefling
Reorders an array using a fast underlying c-function. It is implemented for its simple generality and only intended for internal use in the package.