Struct RapidSimplifyVisitor¶
Defined in File expr_algorithms.cpp
Struct Documentation¶
-
struct RapidSimplifyVisitor¶
Public Functions
-
inline RapidSimplifyVisitor(SimplifyOptions opts)¶
-
inline bool simplify_product(ExprPtr &expr, SimplifyOptions = SimplifyOptions::default_options())¶
simplifies a Product by:
flattening subproducts
factoring in constants
- Parameters:
expr – [inout] (shared_ptr to ) a Product
-
inline bool simplify_sum(ExprPtr &expr, SimplifyOptions = SimplifyOptions::default_options())¶
simplifies a Sum … generally Sum::{ap,pre}pend simplify automatically, but the user code may transform sums in a way that the same simplifications need to be applied here
-
inline bool simplify(ExprPtr &expr, SimplifyOptions opts = SimplifyOptions::default_options())¶
Public Members
-
SimplifyOptions opts¶
-
inline RapidSimplifyVisitor(SimplifyOptions opts)¶