Skip to content
Snippets Groups Projects

Address #13: Use sympy.codegen.rewriting.optimize

Merged Stephan Seitz requested to merge seitz/pystencils:use_codegen.rewriting.optimize into master
Viewing commit 5cdf85c4
Show latest version
1 file
+ 1
1
Preferences
Compare changes
@@ -18,7 +18,7 @@ try:
# Evaluates all constant terms
evaluate_constant_terms = ReplaceOptim(
lambda e: hasattr(e, 'is_constant') and e.is_constant,
lambda e: hasattr(e, 'is_constant') and e.is_constant and not e.is_integer,
lambda p: p.evalf()
)