Returns the number of sites on which the permutations of the group acts.
n_sites(group::PermutationGroup)
int64_tn_sites()const
size
Returns the size of the permutation group, i.e. the number permutations
size(group::PermutationGroup)
int64_tsize()const;
inverse
Given an index of a permutation, it returns the index of the inverse permutation.
inverse(group::PermutationGroup,idx::Integer)
// As a member functionint64_tinverse(int64_tsym)const;
Usage Example
# Define a cyclic group of order 3p1=Permutation([1,2,3])p2=Permutation([2,3,1])p3=Permutation([3,1,2])C3=PermutationGroup([p1,p2,p3])@showsize(C3)@shown_sites(C3)@showinverse(C3,1)#=2
// Define a cyclic group of order 3Permutationp1={0,1,2};Permutationp2={1,2,0};Permutationp3={2,0,1};autoC3=PermutationGroup({p1,p2,p3});XDIAG_SHOW(C3.size());XDIAG_SHOW(C3.n_sites());XDIAG_SHOW(C3.inverse(1));// = 2