25 #ifndef PPL_Polyhedron_chdims_templates_hh
26 #define PPL_Polyhedron_chdims_templates_hh 1
30 template <
typename Linear_System1,
typename Linear_System2>
37 PPL_ASSERT(sys1.topology() == sys2.topology());
38 PPL_ASSERT(sys1.space_dimension() == sys2.space_dimension());
39 PPL_ASSERT(add_dim != 0);
41 sys1.set_space_dimension(sys1.space_dimension() + add_dim);
42 sys2.add_universe_rows_and_space_dimensions(add_dim);
53 swap(sat1[i], sat1[i+add_dim]);
61 #endif // !defined(PPL_Polyhedron_chdims_templates_hh)
size_t dimension_type
An unsigned integral type for representing space dimensions.
void resize(dimension_type new_n_rows, dimension_type new_n_columns)
Resizes the matrix copying the old contents.
dimension_type num_rows() const
Returns the number of rows of *this.
void swap(Polyhedron &x, Polyhedron &y)
Swaps x with y.
dimension_type num_columns() const
Returns the number of columns of *this.
The entire library is confined to this namespace.
static void add_space_dimensions(Linear_System1 &sys1, Linear_System2 &sys2, Bit_Matrix &sat1, Bit_Matrix &sat2, dimension_type add_dim)
Adds new space dimensions to the given linear systems.
void transpose_assign(const Bit_Matrix &y)
Makes *this a transposed copy of y.