File known_polytope_generators.h
Functions
-
template<class Polytope>
Polytope generate_cube(const unsigned int &dim, const bool &Vpoly, typename Polytope::NT scale = 1) This function generates a hypercube of given dimension The result can be either in V-representation (Vpoly=true) or in H-representation (V-poly-false)
- Template Parameters:
Polytope – Type of returned polytope
-
template<typename Polytope>
Polytope generate_cross(const unsigned int &dim, const bool &Vpoly) This function generates a crosspolytope of given dimension The result can be either in V-representation (Vpoly=true) or in H-representation (V-poly-false)
- Template Parameters:
Polytope – Type of returned polytope
-
template<typename Polytope>
Polytope generate_simplex(const unsigned int &dim, const bool &Vpoly) This function generates a simplex of given dimension The result can be either in V-representation (Vpoly=true) or in H-representation (V-poly-false)
- Template Parameters:
Polytope – Type of returned polytope
-
template<typename Polytope>
Polytope generate_prod_simplex(const unsigned int &dim, bool Vpoly = false) This function generates a product of simplices of given dimension The result can be either in V-representation (Vpoly=true) or in H-representation (V-poly-false)
- Template Parameters:
Polytope – Type of returned polytope
-
template<typename Polytope>
Polytope generate_skinny_cube(const unsigned int &dim, bool Vpoly = false) This function generates a skinny cube of given dimension The result can be either in V-representation (Vpoly=true) or in H-representation (V-poly-false)
- Template Parameters:
Polytope – Type of returned polytope
-
template<typename Polytope>
Polytope generate_birkhoff(unsigned int const &n) This function generates the Birkhoff polytope of given type n The Birkhoff polytope also called the assignment polytope or the polytope of doubly stochastic matrices.
- Template Parameters:
Polytope – Type of returned polytope