GetFEM
5.4.2
|
generation of permutations, and ranking/unranking of these. More...
#include <bgeot_permutations.h>
Inherits vector< dim_type >.
generation of permutations, and ranking/unranking of these.
based on algorithms detailed in "Ranking and Unranking Permutations in linear time", W. Myrvold, F. Ruskey ( http://www.csr.uvic.ca/~fruskey/Publications/RankPerm.html ) note that this is not lexigraphical order, and to_rank(0) != {0,1,2,3,...} (it is {1,2,3,...,n,0})
however, the reset(), finished(), and ++ operator are based on the lexicagraphical ordering
Definition at line 44 of file bgeot_permutations.h.