Class OrderPolytope
-
template<typename Point>
class OrderPolytope This class represents an order polytope parameterized by a point type
- Template Parameters:
Point – Point type
Public Types
Public Functions
-
inline unsigned int dimension() const
-
inline unsigned int num_of_hyperplanes() const
-
inline bool is_normalized()
-
inline void print() const
-
inline VT vec_mult(VT const &x, bool transpose = false) const
multiply the sparse matrix A of the order polytope by a vector x if transpose = false : return Ax else if transpose = true : return (A^T)x
-
inline std::pair<NT, NT> line_intersect(Point const &r, Point const &v, VT &Ar, VT &Av, bool pos = false) const
-
inline std::pair<NT, NT> line_intersect(Point const &r, Point const &v, VT &Ar, VT &Av, NT const &lambda_prev, bool pos = false) const
-
inline std::pair<NT, int> line_positive_intersect(Point const &r, Point const &v, VT &Ar, VT &Av) const
-
inline std::pair<NT, int> line_positive_intersect(Point const &r, Point const &v, VT &Ar, VT &Av, NT const &lambda_prev) const
-
template<typename update_parameters>
inline std::pair<NT, int> line_first_positive_intersect(Point const &r, Point const &v, VT &Ar, VT &Av, update_parameters ¶ms) const
-
template<typename update_parameters>
inline std::pair<NT, int> line_positive_intersect(Point const &r, Point const &v, VT &Ar, VT &Av, NT const &lambda_prev, MT const &AA, update_parameters ¶ms) const
-
template<typename update_parameters>
inline std::pair<NT, int> line_positive_intersect(Point const &r, Point const &v, VT &Ar, VT &Av, NT const &lambda_prev, update_parameters ¶ms) const
-
inline std::pair<NT, NT> line_intersect_coord(Point const &r, unsigned int const &rand_coord, VT &lamdas) const
-
inline std::pair<NT, NT> line_intersect_coord(Point const &r, Point const &r_prev, unsigned int const &rand_coord, unsigned int const &rand_coord_prev, VT &lamdas) const
-
inline void normalize()
-
template<typename update_parameters>
inline void compute_reflection(Point &v, Point const&, update_parameters const ¶ms) const