tgen
Loading...
Searching...
No Matches
tgen::permutation::instance Struct Reference

Permutation instance. More...

Public Member Functions

 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.
instancesort ()
 Sorts the instance in non-decreasing order.
instancereverse ()
 Reverses the instance.
instanceinverse ()
 Inverse of the permutation.
instanceadd_1 ()
 Adds 1 for printing.
std::vector< int > to_std () const
 Converts the instance to a std::vector.

Friends

std::ostream & operator<< (std::ostream &out, const instance &inst)
 Prints the instance to a std::ostream.

Detailed Description

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