Function sequant::rapid_simplify¶
Defined in File expr_algorithm.hpp
Function Documentation¶
-
inline ExprPtr &sequant::rapid_simplify(ExprPtr &expr)¶
Simplifies an Expr by applying cheap transformations (e.g. eliminating trivial math, flattening sums and products, etc.)
See also
- Parameters:
expr – [inout] expression to be simplified; may be replaced (i.e.
&expr
may be mutated by call)- Returns:
expr
to facilitate chaining