136 return std::max(i1, i2);
Linear plus optimizations.
identities(ids_t id=deflt)
bool is_associative() const
Whether associative.
Strictly obey to the syntax.
std::ostream & operator<<(std::ostream &o, type_t t)
Print a expression type.
identities meet(identities i1, identities i2)
bool operator<(self_t that) const
Linear plus distribution. Used for series identities.
Trivial, plus associativity of add and product.
std::istream & operator>>(std::istream &is, identities &i)
Read from string form.
bool is_agressive() const
Whether agressive optimizations are on.
std::ostringstream os
The output stream: the corresponding C++ snippet to compile.
Associative plus commutativity, and "idempotence" for add.
bool operator!=(self_t that) const
static type join(rat::identities i1, rat::identities i2)
A structure that implements the computation of join(V1, V2).
bool operator==(self_t that) const
An expressionset can implement several different sets of identities on expressions.
bool is_distributive() const
Whether distributive.
bool is_linear() const
Whether linear.
std::string to_string(identities i)
Wrapper around operator<<.