32 const int&
y_of_x(
int i)
const;
38 void swap(
int x1,
int x2,
int sgn=1);
39 void set(
const std::vector<int>& v,
int sgn=1);
41 void set(
int a,
int b);
42 void set(
int a,
int b,
int c);
43 void set(
int a,
int b,
int c,
int d);
44 void set(
int a,
int b,
int c,
int d,
int e);
53 unsigned int size()
const{
return _v.size();}
70 std::vector<int>&
mapValues(
const std::vector<int>& in
71 , std::vector<int>& out)
const{
79 out.resize(in.size());
80 for(
unsigned int i=0; i < in.size(); i++){
85 std::vector<int>
mapValues(
const std::vector<int>& in)
const{
86 std::vector<int> out(in.size());
91 std::vector<T>&
mapOrder(
const std::vector<T>& in
92 , std::vector<T>& out)
const{
93 out.resize(in.size());
94 unsigned int to = in.size();
95 if(in.size() > this->
size()){
97 for(
unsigned int i = this->
size(); i < in.size(); i++) out[i] = in[i];
100 for(
unsigned int i=0; i < to; i++){
108 , std::vector<T>& out)
const{
119 std::vector<T>
mapOrder(
const std::vector<T>& in)
const{
120 std::vector<T> out(in.size());
131 void print(std::ostream& os = std::cout)
const;
int nPermutations() const
std::vector< int > mapValues(const std::vector< int > &in) const
Permutation(const Permutation &other)
MINT::PolymorphVector< T > mapOrder(const MINT::PolymorphVector< T > &in) const
void swap(int x1, int x2, int sgn=1)
std::ostream & operator<<(std::ostream &os, const Permutation &p)
void print(std::ostream &os=std::cout) const
bool operator<=(const Permutation &rhs) const
MINT::PolymorphVector< T > & mapOrder(const MINT::PolymorphVector< T > &pv, MINT::PolymorphVector< T > &out) const
Permutation operator *(const Permutation &rhs) const
std::vector< T > & mapOrder(const MINT::PolymorphVector< T > &pv, std::vector< T > &out) const
bool operator>=(const Permutation &rhs) const
static const Permutation & unity()
unsigned int size() const
int operator[](int i) const
unsigned int size() const
bool operator==(const Permutation &rhs) const
std::vector< T > & theVector()
bool operator<(const Permutation &rhs) const
void set(const std::vector< int > &v, int sgn=1)
bool operator>(const Permutation &rhs) const
std::vector< T > mapOrder(const std::vector< T > &in) const
std::vector< int > & mapValues(const std::vector< int > &in, std::vector< int > &out) const
std::vector< T > & mapOrder(const std::vector< T > &in, std::vector< T > &out) const
static Permutation * __unit
Permutation operator/(const Permutation &rhs) const
Permutation getInverse() const