Skip to content

Inverse ​

The inverse permutation: position of each value.

Inverse(Permutation)The inverse permutation: position of each value.
Typed signatures
TypePackageApplies
(matrix) -> matrixcompute-enginealways
((permutation) -> permutation) & ((signed_permutation) -> signed_permutation)combinatoricsreplaces modularon permutation, signed_permutation
(expression<ModularMatrix> | matrix | string) -> expression<ModularMatrix> | matrixmodularreplaces compute-enginealways

Domain: Combinatorial maps

Details
  • Takes a Permutation and returns a Permutation — a typed map, so a wrong carrier is a type error rather than a wrong answer.
  • Also takes a SignedPermutation, returning a SignedPermutation: The inverse signed permutation: ±j goes to the position of j, signed as the entry there.
  • FindStat's Mp00162.

Examples

Basic #

the one-line word 231231

live ↗
InPermutation⁡([2,3,1])−1{\operatorname{Permutation}}([2, 3, 1])^{-1}OutPermutation⁡([3,1,2]){\operatorname{Permutation}}([3, 1, 2])

the signed permutation 2 3ˉ 12\,\bar 3\,1

live ↗
InSignedPermutation⁡([2,−3,1])−1{\operatorname{SignedPermutation}}([2, -3, 1])^{-1}OutSignedPermutation⁡([3,1,−2]){\operatorname{SignedPermutation}}([3, 1, -2])
About
Examples2
CrosswalkWikipedia ×2MathWorldWikidataEncyclopedia of MathematicsnLabBritannicaFindStat ×2Wolfram Language

Implementation

mappedsagepackages/oracle/src/mappings.ts
mappedsympypackages/oracle/src/mappings.ts

The permutation inverse (Permutation.__invert__), 1-based in and out; not a matrix inverse.