MathTop

array_permute_inverse 函数

对矩形数组应用一基维度置换的逆置换。

语法

  • ArrayTools:-PermuteInverse(array, permutation)
  • ArrayTools[PermuteInverse](array, permutation)
  • array_permute_inverse(array, permutation)

参数与选项

array需要重排维度的矩形数组。
permutation要应用其逆置换的原始维度置换。

示例

  1. 撤销维度置换ArrayTools:-PermuteInverse([[[1, 3], [2, 4]]], [2, 3, 1])返回 [[[1, 2]], [[3, 4]]]。