Expand description
Arithmetic operation simplification
Handles simplification of basic arithmetic operations: addition, multiplication, and powers. Implements ultra-fast paths for common cases while maintaining mathematical correctness.
Functionsยง
- simplify_
addition - Simplify addition expressions with minimal overhead
- simplify_
multiplication - Simplify multiplication with minimal overhead and flattening
- simplify_
power - Power simplification
- try_
matrix_ add - Try to simplify A + B for matrices directly without building expression tree
- try_
matrix_ multiply - Try to simplify A * B for matrices directly without building expression tree