24 #ifndef PPL_Expression_Hide_Last_defs_hh
25 #define PPL_Expression_Hide_Last_defs_hh 1
33 #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
34 #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS)
55 const_iterator
end()
const;
80 template <
typename Expression>
93 Coefficient_traits::const_reference
get(
Variable v)
const;
134 template <
typename Expression>
140 template <
typename Expression>
142 Coefficient_traits::const_reference c1,
143 Coefficient_traits::const_reference c2,
154 template <
typename Expression>
165 #endif // !defined(PPL_Expression_Hide_Last_defs_hh)
T::raw_type raw_type
The raw, completely unwrapped type.
A finite sequence of coefficients.
bool have_a_common_variable(const Expression &y, Variable first, Variable last) const
size_t dimension_type
An unsigned integral type for representing space dimensions.
An std::set of variables' indexes.
An adapter for Linear_Expression objects.
T::const_reference inner_type
The type obtained by one-level unwrapping.
A finite sparse sequence of coefficients.
dimension_type space_dimension() const
Returns the dimension of the vector space enclosing *this.
Coefficient gcd(dimension_type start, dimension_type end) const
Returns the gcd of the nonzero coefficients in [start,end). Returns zero if all the coefficients in t...
Expression_Hide_Last< T > const_reference
The type of this object.
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 lower_bound(Variable v) const
A dimension of the vector space.
bool is_equal_to(const Expression &y) const
Returns true if *this is equal to y.
raw_type::const_iterator const_iterator
The type of const iterators on coefficients.
Expression_Hide_Last(const raw_type &expr, bool hide_last)
Constructor.
const bool hide_last_
Whether or not the last coefficient is hidden.
void get_row(Dense_Row &r) const
Sets r to a copy of the row as adapted by *this.
dimension_type last_nonzero() const
dimension_type num_zeroes(dimension_type start, dimension_type end) const
Returns the number of zero coefficient in [start, end).
const_iterator end() const
Iterator pointing after the last nonzero variable coefficient.
PPL_COEFFICIENT_TYPE Coefficient
An alias for easily naming the type of PPL coefficients.
bool all_homogeneous_terms_are_zero() const
Returns true if and only if all the homogeneous terms of *this are zero.
dimension_type first_nonzero(dimension_type first, dimension_type last) const
Expression_Adapter< T > base_type
base_type::inner_type inner_type
The type obtained by one-level unwrapping.
base_type::const_iterator const_iterator
The type of const iterators on coefficients.
void has_a_free_dimension_helper(std::set< dimension_type > &x) const
Removes from set x all the indexes of nonzero elements in *this.
Coefficient_traits::const_reference coefficient(Variable v) const
Returns the coefficient of v in *this.
An adapter for Linear_Expression that maybe hides the last coefficient.
bool all_zeroes(const Variables_Set &vars) const
Returns true if the coefficient of each variable in vars is zero.
base_type::raw_type raw_type
The raw, completely unwrapped type.