24 #ifndef PPL_Expression_Hide_Inhomo_defs_hh
25 #define PPL_Expression_Hide_Inhomo_defs_hh 1
33 #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
40 #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS)
70 template <
typename Expression>
77 Coefficient_traits::const_reference
get(
Variable v)
const;
126 template <
typename Expression>
132 template <
typename Expression>
134 Coefficient_traits::const_reference c1,
135 Coefficient_traits::const_reference c2,
147 #endif // !defined(PPL_Expression_Hide_Inhomo_defs_hh)
Coefficient_traits::const_reference inhomogeneous_term() const
Returns the constant zero.
bool is_equal_to(const Expression &y) const
Returns true if *this is equal to y.
T::raw_type raw_type
The raw, completely unwrapped type.
Expression_Hide_Inhomo(const raw_type &expr)
Constructor.
A finite sequence of coefficients.
size_t dimension_type
An unsigned integral type for representing space dimensions.
base_type::const_iterator const_iterator
The type of const iterators on coefficients.
An std::set of variables' indexes.
An adapter for Linear_Expression objects.
T::const_reference inner_type
The type obtained by one-level unwrapping.
void get_row(Dense_Row &r) const
Sets r to a copy of the row as adapted by *this.
bool all_zeroes(const Variables_Set &vars) const
Returns true if the coefficient of each variable in vars is zero.
A finite sparse sequence of coefficients.
Coefficient gcd(dimension_type start, dimension_type end) const
Returns the gcd of the nonzero coefficients in [start,end). If all the coefficients in this range are...
Expression_Hide_Inhomo< T > const_reference
The type of this object.
A dimension of the vector space.
raw_type::const_iterator const_iterator
The type of const iterators on coefficients.
dimension_type first_nonzero(dimension_type first, dimension_type last) const
void has_a_free_dimension_helper(std::set< dimension_type > &x) const
Removes from set x all the indexes of nonzero elements in *this.
Expression_Adapter< T > base_type
dimension_type last_nonzero() const
PPL_COEFFICIENT_TYPE Coefficient
An alias for easily naming the type of PPL coefficients.
base_type::inner_type inner_type
The type obtained by one-level unwrapping.
An adapter for Linear_Expression that hides the inhomogeneous term.
dimension_type num_zeroes(dimension_type start, dimension_type end) const
Returns the number of zero coefficient in [start, end).
base_type::raw_type raw_type
The raw, completely unwrapped type.
bool all_zeroes_except(const Variables_Set &vars, dimension_type start, dimension_type end) const
Returns true if all coefficients in [start,end), except those corresponding to variables in vars...
bool is_zero() const
Returns true if and only if *this is zero.
const_iterator end() const
Iterator pointing after the last nonzero variable coefficient.