Module aftermath::reduce

source ·
Expand description

Everything related to reducing an expression

This is used after differentiating an expression since it produces lots of garbage that does not change the result but may change the cost of evaluating the expression

In the context of this crate, reducing an expression is pre-computing every constant operation that can be. This will remove stuff like identity operation (i.e. multiply by 1 or adding 0) It won’t compute functions and use bindings, but will remove them if not used in the end

Traits