Permutation instance.
More...
|
| | instance (const std::vector< int > &vec) |
| | Creates a permutation instance from a std::vector.
|
| int | size () const |
| | Returns the size of the permutation instance.
|
| int & | operator[] (int idx) |
| | Returns the value at some position of the instance.
|
| int | parity () const |
| | Parity of the permutation.
|
| instance & | sort () |
| | Sorts the instance in non-decreasing order.
|
| instance & | reverse () |
| | Reverses the instance.
|
| instance & | inverse () |
| | Inverse of the permutation.
|
| instance & | add_1 () |
| | Adds 1 for printing.
|
| std::vector< int > | to_std () const |
| | Converts the instance to a std::vector.
|
|
| std::ostream & | operator<< (std::ostream &out, const instance &inst) |
| | Prints the instance to a std::ostream.
|
Permutation instance.
- See also
- Permutation instances.
Definition at line 1120 of file tgen.h.
The documentation for this struct was generated from the following files:
- /home/runner/work/tgen/tgen/single_include/tgen.h
- permutation.dox