class_group 0.6.0

Rust library for building IQC: cryptography based on class groups (Cl) of imaginary quadratic orders
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
Function: numtoperm
Section: combinatorics
C-Name: numtoperm
Prototype: LG
Description:
 (small,int):vecsmall                Z_to_perm($1, $2)
 (small,gen):vecsmall                numtoperm($1, $2)
Help: numtoperm(n,k): permutation number k (mod n!) of n letters (n
 C-integer).
Doc: generates the $k$-th permutation (as a row vector of length $n$) of the
 numbers $1$ to $n$. The number $k$ is taken modulo $n!\,$, i.e.~inverse
 function of \tet{permtonum}. The numbering used is the standard lexicographic
 ordering, starting at $0$.