Skip to content

permute

builtin · libnexusinterp/corefcn/data-proprietary.cc

: b = permute (a, perm)

Rearrange the dimensions of a: dimension k of the result is dimension perm(k) of a. perm must be a permutation of 1:N with N at least ndims (a).