Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

permutation_inverse function

The inverse of a permutation.

How to write it

permutation_inverse(p)

p
A permutation, written as the list of where 1, 2, 3 and so on go. Takes a list.

Examples

  • permutation_inverse⁡([2,3,1])=(132)\displaystyle \operatorname{permutation\_inverse}(\left[ 2, 3, 1 \right]) = \begin{pmatrix} 1 & 3 & 2 \end{pmatrix}
    permutation_inverse([2, 3, 1])

    In the solver, permutation_inverse([2, 3, 1]) gives [[1, 3, 2]].

    Open in the solver