categorical

Methods

Method Reference: categorical.ipermute

categorical: A = ipermute (B, dims)

Inverse of the generalized transpose for a categorical N-D array.

A = ipermute (B, dims) returns the inverse of the generalized transpose performed by the permute function. The expression ipermute (permute (A, dims), dims) returns the original array A.

dims must index all the dimensions 1:ndims (B) of the input array B, in any order, but only once. The dimension of B specified in dims(N) gets remapped to the Nth dimension of A.

Source Code: categorical