Permutation class.
Public Methods
-
Perm(size_t ssize, perm_t* mmap)
- Constructor.
-
Perm(size_t size)
- Constructor.
-
Perm()
- Constructor.
-
perm_t map(perm_t el) const
- Operation.
-
size_t get_size() const
- Size.
-
bool operator==(const Perm &p) const
- Equal.
-
bool operator!=(const Perm &p) const
- Unequal.
-
Perm& operator*(const Perm &p) const
- Multiplication.
-
void print() const
- Print.
-
int sign() const
- Sign.
-
int ord() const
- Order.
-
Perm& inv() const
- Inversion.
Documentation
Permutation class.
Mathematical interface to a permutation providing the standard
operation and some extra stuff.
- Perm(size_t ssize, perm_t* mmap)
- Constructor. Create permutation in S_ssize with mappings mmap.
- Perm(size_t size)
- Constructor. Create identity permutation in S_ssize.
- Perm()
- Constructor. Create identity in S_5.
- perm_t map(perm_t el) const
- Operation. Get result of the operation on el.
- size_t get_size() const
- Size. Get the n in S_n.
- bool operator==(const Perm &p) const
- Equal. this == p ?
- bool operator!=(const Perm &p) const
- Unequal. this != p ?
- Perm& operator*(const Perm &p) const
- Multiplication. this * p
- void print() const
- Print. Nice output of this.
- int sign() const
- Sign. Return sign of this.
- int ord() const
- Order. Return order of this in S_n.
- Perm& inv() const
- Inversion. Return this^(-1).
- This class has no child classes.
Alphabetic index Hierarchy of classes
This page was generated with the help of DOC++.