12 #ifndef PERMUTATIONS_H 13 #define PERMUTATIONS_H 28 namespace permutations {
32 {
return std::find(v.begin(),v.end(),x)-v.begin(); }
35 :
public std::vector<unsigned long>
37 typedef std::vector<unsigned long>
Base;
46 std::vector<T>
pull_back(
const std::vector<T>&
v)
const;
53 std::vector<U>
renumbering(
const std::vector<U>& v)
const;
58 template<
typename U>
void renumber(std::vector<U>& v)
const;
61 template<
typename U>
void renumber(std::vector<U>& v, U except)
const;
64 template<
typename T>
void permute(std::vector<T>& v)
const;
83 std::vector<unsigned int>* stops = NULL);
std::vector< U > renumbering(const std::vector< U > &v) const
Definition: permutations.cpp:59
void permute_columns(matrix::Matrix_base< T > &M, const Permutation &pi)
Definition: permutations.cpp:140
std::vector< T > pull_back(const std::vector< T > &v) const
Definition: permutations_def.h:35
Set of n bits.
Definition: Atlas.h:57
Definition: permutations.h:34
std::vector< unsigned long > Base
Definition: permutations.h:37
int sign(const Permutation &pi)
Definition: permutations.cpp:121
Permutation standardization(const std::vector< U > &a, size_t bound, std::vector< unsigned int > *stops)
Definition: permutations.cpp:228
size_t find_index(const std::vector< T > &v, const T &x)
Definition: permutations.h:31
void conjugate(matrix::Matrix_base< T > &M) const
Definition: permutations.cpp:180
Type definitions for the class BitSet.
void compose(Permutation &a, const Permutation &b, unsigned long n)
Definition: permutations.cpp:82
void renumber(std::vector< U > &v) const
Definition: permutations.cpp:102
Permutation(unsigned long n)
Definition: permutations.h:39
void permute(std::vector< T > &v) const
Definition: permutations_def.h:64
unsigned long n
Definition: axis.cpp:77
Permutation()
Definition: permutations.h:38
void permute_rows(matrix::Matrix_base< T > &M, const Permutation &pi)
Container of a large (more than twice the machine word size) set of bits.
Definition: bitmap.h:52
const expr & e
Definition: axis.cpp:95
Permutation(I b, I e)
Definition: permutations.h:42
Vertex v
Definition: graph.cpp:116
void inv_conjugate(matrix::Matrix_base< T > &M) const
Definition: permutations.cpp:207