Permutation
Permutations of indices or lattice sites
Source permutation.hpp
Constructors
Creates an Permutation out of an array of integers, e.g. [0, 2, 1, 3]
. If the input array is of size N
then every number between 0
and N-1
must occur exactly once, otherwise the Permutation is invalid.
1-indexing in Julia / 0-indexing in C++
To enumerate the sites of a Permutation, we start counting at 1 in Julia and 0 in C++.
Methods
inverse
Computes the inverse permutation.
"*" operator
Concatenates two permutations by overloading the *
operator.
size
Returns the size of the permutation, i.e. the number of indices being permuted.