Description Usage Arguments Value Examples
For a permutation p build q such that p[q] == q[p] == seq_len(length(p)). Please see https://win-vector.com/2017/05/18/on-indexing-operators-and-composition/ and https://win-vector.com/2017/09/02/permutation-theory-in-action/.
1 | invert_perm(p)
|
p |
vector of length n containing each of seq_len(n) exactly once. |
vector q such that p[q] == q[p] == seq_len(length(p))
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.