class Perm

Permutation class.

Public Methods

[more] Perm(size_t ssize, perm_t* mmap)
Constructor.
[more] Perm(size_t size)
Constructor.
[more] Perm()
Constructor.
[more]perm_t map(perm_t el) const
Operation.
[more]size_t get_size() const
Size.
[more]bool operator==(const Perm &p) const
Equal.
[more]bool operator!=(const Perm &p) const
Unequal.
[more]Perm& operator*(const Perm &p) const
Multiplication.
[more]void print() const
Print.
[more]int sign() const
Sign.
[more]int ord() const
Order.
[more]Perm& inv() const
Inversion.


Documentation

Permutation class. Mathematical interface to a permutation providing the standard operation and some extra stuff.
o Perm(size_t ssize, perm_t* mmap)
Constructor. Create permutation in S_ssize with mappings mmap.

o Perm(size_t size)
Constructor. Create identity permutation in S_ssize.

o Perm()
Constructor. Create identity in S_5.

operm_t map(perm_t el) const
Operation. Get result of the operation on el.

osize_t get_size() const
Size. Get the n in S_n.

obool operator==(const Perm &p) const
Equal. this == p ?

obool operator!=(const Perm &p) const
Unequal. this != p ?

oPerm& operator*(const Perm &p) const
Multiplication. this * p

ovoid print() const
Print. Nice output of this.

oint sign() const
Sign. Return sign of this.

oint ord() const
Order. Return order of this in S_n.

oPerm& 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++.